Skip to content

Commit

Permalink
creating a matrix for running a job with different environments
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalankit committed Feb 20, 2020
1 parent 68d3451 commit 4680d2f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ on: push

jobs:
node-version:
runs-on: ubuntu-latest
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
node_version: [6, 8, 10]
runs-on: ${{ matrix.os }}
steps:
- name: Log node version
run: node -v
- uses: actions/setup-node@V1
with:
node-version: 6
node-version: ${{ matrix.node_version }}
- name: Log node version
run: node -v

0 comments on commit 4680d2f

Please sign in to comment.