default working-directory

This commit is contained in:
Luke Curley 2023-05-22 21:58:05 -07:00
parent bec525e042
commit e3ca13dd50
2 changed files with 8 additions and 7 deletions

View File

@ -11,6 +11,10 @@ jobs:
check:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./server
steps:
- uses: actions/checkout@v3
@ -20,18 +24,15 @@ jobs:
components: clippy, rustfmt
- name: test
working-directory: server
run: cargo test --verbose
- name: fmt
uses: mbrobbel/rustfmt-check@master
working-directory: server
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: clippy
uses: actions-rs/clippy-check@v1
working-directory: server
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features

View File

@ -8,11 +8,14 @@ jobs:
check:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./web
steps:
- uses: actions/checkout@v3
- name: install
working-directory: web
run: yarn install
- name: cert
@ -20,13 +23,10 @@ jobs:
run: ./generate
- name: build
working-directory: web
run: yarn build
- name: fmt
working-directory: web
run: yarn prettier --check .
- name: lint
working-directory: web
run: yarn lint