default working-directory
This commit is contained in:
parent
bec525e042
commit
e3ca13dd50
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue