Skip to content

chore: adding github actions #11

chore: adding github actions

chore: adding github actions #11

Workflow file for this run

name: CI
on:
push:
branches:
# Change this if your primary branch is not main
- main
pull_request:
# Needed for nx-set-shas when run on the main branch
permissions:
actions: read
contents: read
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- run: npm ci
- uses: nrwl/nx-set-shas@v4
- run: npx nx run-many --target=lint
- run: npx nx run-many --target=test --coverage
- run: npx nx run-many --target=build
- uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}