Skip to content

Commit

Permalink
chore: setup caching for actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pateketrueke committed May 31, 2022
1 parent 5be637d commit 4f95bcc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4,965 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,23 @@ jobs:
ports:
- 5432:5432
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: actions/setup-node@v1
- run: npm ci

- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}

-
run: npm run test:ci
run: |
npm i
npm run test:ci
env:
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432

- run: npm run codecov
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
.nyc_output
coverage
node_modules
package-lock.json
Loading

0 comments on commit 4f95bcc

Please sign in to comment.