Fix release workflow #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: {} | |
jobs: | |
server-fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup toolchain install stable --profile minimal | |
- run: rustup component add rustfmt | |
- uses: Swatinem/[email protected] | |
with: | |
workspaces: "server" | |
save-if: ${{ github.ref == 'refs/heads/master' }} | |
- run: cargo fmt --all --check | |
working-directory: server | |
server-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup toolchain install stable --profile minimal | |
- uses: Swatinem/[email protected] | |
with: | |
workspaces: "server" | |
save-if: ${{ github.ref == 'refs/heads/master' }} | |
- run: cargo test | |
working-directory: server | |
server-clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup toolchain install stable --profile minimal | |
- run: rustup component add clippy | |
- uses: Swatinem/[email protected] | |
with: | |
workspaces: "server" | |
save-if: ${{ github.ref == 'refs/heads/master' }} | |
- run: cargo clippy | |
working-directory: server | |
frontend-eslint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install modules | |
working-directory: frontend | |
run: yarn | |
- name: Run eslint | |
working-directory: frontend | |
run: yarn eslint |