build(deps-dev): Bump @types/react from 18.3.3 to 18.3.11 in /app/web #179
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
# docs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions | |
name: 🧪 Tests | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: [master, main] | |
paths-ignore: ['**.md'] | |
tags-ignore: ['**'] | |
pull_request: | |
paths-ignore: ['**.md'] | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
git-leaks: | |
name: 🔐 Check for GitLeaks | |
runs-on: ubuntu-latest | |
steps: | |
- {uses: actions/checkout@v4, with: {fetch-depth: 0}} | |
- uses: gacts/gitleaks@v1 | |
dns-control: | |
name: 🌐 DNSControl check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gacts/install-dnscontrol@v1 | |
- run: dnscontrol check | |
working-directory: dns | |
lint-and-test-app-backend: | |
name: 🧪 Test and lint app (backend) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- {uses: actions/setup-go@v5, with: {go-version-file: ./app/go.mod, cache-dependency-path: ./app/go.sum}} | |
- run: go install "github.com/oapi-codegen/oapi-codegen/v2/cmd/[email protected]" | |
- run: go generate -skip readme ./... | |
working-directory: ./app | |
- uses: golangci/golangci-lint-action@v6 | |
with: {working-directory: ./app} | |
- run: go test -race -covermode=atomic ./... | |
working-directory: ./app | |
lint-and-test-app-frontend: | |
name: 🧪 Test and lint app (frontend) | |
runs-on: ubuntu-latest | |
env: {FORCE_COLOR: 'true', NPM_PREFIX: './app/web'} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: {node-version: 22, cache: 'npm', cache-dependency-path: ./app/web/package-lock.json} | |
- run: npm --prefix "$NPM_PREFIX" install -dd --no-audit | |
- run: npm --prefix "$NPM_PREFIX" run generate | |
- run: npm --prefix "$NPM_PREFIX" run lint | |
- run: npm --prefix "$NPM_PREFIX" run test | |
- run: npm --prefix "$NPM_PREFIX" run build | |
lint-mkcert: | |
name: 🧪 Lint mkcert | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- {uses: actions/setup-go@v5, with: {go-version-file: ./mkcert/go.mod, cache-dependency-path: ./mkcert/go.sum}} | |
- uses: golangci/golangci-lint-action@v6 | |
with: {working-directory: ./mkcert} | |
build-docker-image: | |
name: 🏗️ Build the docker image | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: docker/build-push-action@v4 | |
with: | |
context: ./app | |
file: ./app/Dockerfile | |
push: false | |
tags: app:local |