Initial commit

This commit is contained in:
Aaro Koivukangas
2026-10-12 11:09:03 +03:00
commit 22396979d4
31 changed files with 4809 additions and 0 deletions
+53
View File
@@ -0,0 +1,53 @@
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run fmt:check
- run: npm run typecheck
- run: npm test -- --coverage
- run: npx playwright install --with-deps firefox
- run: npm run test:e2e
- uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
path: playwright-report
# Argo image-updater tracks the :latest digest, see k8s-pumppi/wasab
publish:
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/wasab:latest
ghcr.io/${{ github.repository_owner }}/wasab:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max