Set up CI
This commit is contained in:
parent
5dcf27bb9f
commit
52eb07a993
12 changed files with 223 additions and 8218 deletions
30
.forgejo/workflows/test.yml
Normal file
30
.forgejo/workflows/test.yml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: docker
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: https://code.forgejo.org/actions/checkout@v4
|
||||
|
||||
- name: Install root tooling
|
||||
run: npm ci
|
||||
|
||||
- name: Check formatting
|
||||
run: npm run format:check
|
||||
|
||||
- name: Install backend dependencies
|
||||
run: npm ci
|
||||
working-directory: backend
|
||||
|
||||
- name: Run backend tests
|
||||
run: npm test
|
||||
working-directory: backend
|
||||
Loading…
Add table
Add a link
Reference in a new issue