Skip to content

Feat/s3 file browser v1 #938

Feat/s3 file browser v1

Feat/s3 file browser v1 #938

Workflow file for this run

---
name: PR Checks
permissions:
contents: read
on:
pull_request:
merge_group:
jobs:
pre-commit:
name: Pre-commit Checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version-file: '.node-version'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Compile Paraglide messages
run: npx @inlang/paraglide-js compile --project ./project.inlang --outdir ./src/lib/paraglide
- name: Install hadolint
run: |
set -euo pipefail
HADOLINT_VERSION=v2.14.0
SYSTEM=$(uname -s)
ARCH=$(uname -m)
mkdir -p "$HOME/.local/bin"
curl -sL -o "$HOME/.local/bin/hadolint" "https://github.com/hadolint/hadolint/releases/download/${HADOLINT_VERSION}/hadolint-$SYSTEM-$ARCH"
chmod 755 "$HOME/.local/bin/hadolint"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Install Helm
uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0
- name: Setup Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.12'
- name: Cache pre-commit
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ env.pythonLocation }}-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Install pre-commit
run: python -m pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files --hook-stage manual --show-diff-on-failure --color=always
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version-file: '.node-version'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Run unit tests
run: npm run test:unit
e2e-tests:
name: E2E Tests with Garage S3 and PostgreSQL
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version-file: '.node-version'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium firefox
- name: Run E2E tests with Garage and PostgreSQL
run: npm run test:e2e
- name: Upload Playwright traces
if: always()
uses: actions/upload-artifact@v7
with:
name: playwright-traces
path: e2e/test-results/
retention-days: 7