Add a GH workflow.
This commit is contained in:
parent
226f4680a3
commit
77be6fa12d
|
@ -1,4 +1,4 @@
|
|||
name: Rust
|
||||
name: Server
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -18,6 +18,6 @@ jobs:
|
|||
- name: Build
|
||||
working-directory: server
|
||||
run: cargo build --verbose
|
||||
- name: Run tests
|
||||
- name: Test
|
||||
working-directory: server
|
||||
run: cargo test --verbose
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
name: Web
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install
|
||||
working-directory: web
|
||||
run: yarn install
|
||||
- name: Build
|
||||
working-directory: web
|
||||
run: yarn build
|
||||
- name: Lint
|
||||
working-directory: web
|
||||
run: yarn lint
|
Loading…
Reference in New Issue