Skip to content

Commit

Permalink
ci: add github actions ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfsousa committed Nov 13, 2022
1 parent 6dfde84 commit a24cef0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI
on: [push]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Use Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: 18.x

- name: Cache npm
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-

- name: Install packages
run: npm ci

- name: Run lint
run: npm run lint

- name: Run tests
run: npm run test:cov
env:
CI: "true"

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2

0 comments on commit a24cef0

Please sign in to comment.