chore(deps): update all non-major dependencies #332
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, edited, synchronize, reopened] | |
jobs: | |
lint: | |
name: Lint Rust | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./server | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # 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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
- name: Setup go | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # 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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
- name: Setup node | |
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # 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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
- name: Setup node | |
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # 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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
- name: Setup node | |
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4 | |
with: | |
node-version-file: "./ui/.nvmrc" | |
- name: Setup go | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # 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 |