Skip to content

Commit

Permalink
#43 Add initial test github action
Browse files Browse the repository at this point in the history
  • Loading branch information
danielemery committed Sep 22, 2023
1 parent 2c93540 commit 10c9478
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Test

on:
push:
branches: ['main']
pull_request:
branches: ['main']

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
container:
image: cimg/node:18.17.1
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install packages
run: npm ci

- name: Lint
run: npm run lint

- name: Run unit tests
run: npm t

- name: Build
run: npm run build

- name: Upload Build Artifacts
uses: actions/upload-artifact@v2
with:
name: build-artifacts
path: |
dist
prisma
Dockerfile
.dockerignore
package*.json

0 comments on commit 10c9478

Please sign in to comment.