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 5583f1b
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions .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,8 +36,41 @@ 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]
needs: build
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
run: |
pwd
ls -alh .
ls -alh node_modules
ls -alh node_modules/.bin
chmod +x node_modules/.bin/*
ls -alh node_modules/.bin
npm run lint
- name: Run the tests
run: npm run jest:ci

0 comments on commit 5583f1b

Please sign in to comment.