diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..673f22f --- /dev/null +++ b/.github/workflows/test.yaml @@ -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 }}"