Skip to content

Commit

Permalink
Improve ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jairhenrique committed Nov 8, 2023
1 parent 3a54187 commit e5ffc5d
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,18 @@ jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: [18, 20]

steps:
- uses: actions/checkout@v3

- name: Setup node ${{ matrix.version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.version }}
cache: "npm"

- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v3
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ubuntu-latest-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
ubuntu-latest-node-
- name: Install dependencies
run: npm install

Expand Down

0 comments on commit e5ffc5d

Please sign in to comment.