Skip to content

Commit

Permalink
[CONFIG] [Github Actions] Node Unit tests with artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonzalo Diaz committed Aug 28, 2024
1 parent 03ab8f7 commit a304bd9
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
"ubuntu-latest",
"macOS-latest"
]
node-version: [18.x, 20.x, 22.5.1]
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule
# at https://nodejs.org/en/about/releases/

Expand All @@ -36,6 +36,31 @@ jobs:
- name: Install dependencies
run: npm ci --verbose

- uses: actions/upload-artifact@master
with:
name: dependencies-dist-${{ matrix.os }}-${{ matrix.node-version }}
path: node_modules

Lint:
runs-on: ubuntu-latest
strategy:
matrix:
os: [
"windows-latest",
"ubuntu-latest",
"macOS-latest"
]
node-version: [18.x, 20.x, 22.x]
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- name: Artifacts
uses: actions/download-artifact@master
with:
name: dependencies-dist-${{ matrix.os }}-${{ matrix.node-version }}
path: node_modules

- name: Lint
run: npm run lint

Expand Down

0 comments on commit a304bd9

Please sign in to comment.