Skip to content

Commit

Permalink
Create test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
zepeng811 authored Aug 31, 2023
1 parent 1ff7313 commit bc194dd
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: test-workflow
on: [push]

jobs:
job1:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x]
steps:
- name: Setup Node.js \\${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: \\${{ matrix.node-version }}
- name: Some job step that provides an output
id: step1
run: echo "::set-output name=output1::output-thing"
job2:
needs: job1
runs-on: ubuntu-latest
steps:
- name: Get output
run: |
echo "The output: ${{ needs.job1.outputs.output1 }}"

0 comments on commit bc194dd

Please sign in to comment.