default working-directory
This commit is contained in:
parent
bec525e042
commit
e3ca13dd50
|
@ -11,6 +11,10 @@ jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ./server
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
@ -20,18 +24,15 @@ jobs:
|
||||||
components: clippy, rustfmt
|
components: clippy, rustfmt
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
working-directory: server
|
|
||||||
run: cargo test --verbose
|
run: cargo test --verbose
|
||||||
|
|
||||||
- name: fmt
|
- name: fmt
|
||||||
uses: mbrobbel/rustfmt-check@master
|
uses: mbrobbel/rustfmt-check@master
|
||||||
working-directory: server
|
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: clippy
|
- name: clippy
|
||||||
uses: actions-rs/clippy-check@v1
|
uses: actions-rs/clippy-check@v1
|
||||||
working-directory: server
|
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
args: --all-features
|
args: --all-features
|
||||||
|
|
|
@ -8,11 +8,14 @@ jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ./web
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: install
|
- name: install
|
||||||
working-directory: web
|
|
||||||
run: yarn install
|
run: yarn install
|
||||||
|
|
||||||
- name: cert
|
- name: cert
|
||||||
|
@ -20,13 +23,10 @@ jobs:
|
||||||
run: ./generate
|
run: ./generate
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
working-directory: web
|
|
||||||
run: yarn build
|
run: yarn build
|
||||||
|
|
||||||
- name: fmt
|
- name: fmt
|
||||||
working-directory: web
|
|
||||||
run: yarn prettier --check .
|
run: yarn prettier --check .
|
||||||
|
|
||||||
- name: lint
|
- name: lint
|
||||||
working-directory: web
|
|
||||||
run: yarn lint
|
run: yarn lint
|
||||||
|
|
Loading…
Reference in New Issue