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: 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

View File

@ -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