chore(deps): update all non-major dependencies #399
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: Pull request | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
lint: | |
name: Lint Rust | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./server | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Setup | |
run: | | |
VS="0.16.1" | |
NAME="cargo-deny" | |
curl -L -o ./archive.tar.gz https://github.com/EmbarkStudios/$NAME/releases/download/$VS/$NAME-$VS-x86_64-unknown-linux-musl.tar.gz | |
tar -xzvf ./archive.tar.gz --strip-components=1 -C . | |
- name: format | |
if: always() | |
run: cargo fmt --check | |
- name: check | |
if: always() | |
run: cargo check | |
- name: clippy | |
if: always() | |
run: cargo clippy | |
- name: licenses | |
if: always() | |
run: ./cargo-deny check licenses | |
test: | |
name: Test Rust | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./server | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Setup go | |
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5 | |
with: | |
go-version: '1.22' | |
cache: false | |
- name: setup vips | |
run: sudo apt-get update && sudo apt-get install -y libvips-tools && vips --version | |
- name: Install fake-oidc | |
run: go install github.com/bradenrayhorn/fake-oidc@v0 | |
- name: test | |
run: cargo test | |
lint-svelte: | |
name: Lint Svelte | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Setup node | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | |
with: | |
node-version-file: "./ui/.nvmrc" | |
- name: Install dependencies | |
run: npm install | |
working-directory: ./ui | |
- name: Prettier and ESLint | |
run: npm run lint | |
working-directory: ./ui | |
if: always() | |
- name: svelte-check | |
run: npm run check -- --fail-on-warnings | |
working-directory: ./ui | |
if: always() | |
- name: build | |
run: GENERATE_LICENSES=true npm run build | |
working-directory: ./ui | |
if: always() | |
test-svelte: | |
name: Test Svelte | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Setup node | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | |
with: | |
node-version-file: "./ui/.nvmrc" | |
- name: Install dependencies | |
run: npm install | |
working-directory: ./ui | |
- name: Vitest | |
run: npm run test:unit | |
working-directory: ./ui | |
if: always() | |
test-e2e: | |
name: Test E2E | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Setup node | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | |
with: | |
node-version-file: "./ui/.nvmrc" | |
- name: Setup go | |
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5 | |
with: | |
go-version: '1.22' | |
cache: false | |
- name: setup vips | |
run: sudo apt-get update && sudo apt-get install -y libvips-tools && vips --version | |
- name: Install fake-oidc | |
run: go install github.com/bradenrayhorn/fake-oidc@v0 | |
- name: Install Svelte dependencies | |
working-directory: ./ui | |
run: npm install | |
- name: Install Playwright dependencies | |
working-directory: ./e2e | |
run: npm install | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
working-directory: ./e2e | |
- name: Run Playwright tests | |
working-directory: ./e2e | |
run: npm run test | |
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report | |
path: e2e/playwright-report/ | |
retention-days: 2 |