Skip to content

Commit

Permalink
adding reuseable file
Browse files Browse the repository at this point in the history
  • Loading branch information
gavin-xin committed Feb 26, 2024
1 parent ca21456 commit 3292795
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/matrix.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: matrics demo
on: push
jobs:
build:
continue-on-error: true
strategy:
matrix:
node-version: [12, 14, 16]
operation-system: [ubuntu-latest,windows-latest]
include:
- node-version: 18
operation-system: ubuntu-latest
exclude:
- node-version: 12
operation-system: windows-latest
runs-on: ${{matrix.operation-system}}
steps:
- name: get code
uses: actions/checkout@v3
- name: install nodejs
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: install dependenies
run: npm ci
- name: build project
run: npm run build
# name: matrics demo
# on: push
# jobs:
# build:
# continue-on-error: true
# strategy:
# matrix:
# node-version: [12, 14, 16]
# operation-system: [ubuntu-latest,windows-latest]
# include:
# - node-version: 18
# operation-system: ubuntu-latest
# exclude:
# - node-version: 12
# operation-system: windows-latest
# runs-on: ${{matrix.operation-system}}
# steps:
# - name: get code
# uses: actions/checkout@v3
# - name: install nodejs
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# - name: install dependenies
# run: npm ci
# - name: build project
# run: npm run build

0 comments on commit 3292795

Please sign in to comment.