fix: Linting #600
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| id-token: write | |
| jobs: | |
| frontend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| name: Checkout code | |
| - name: Set up Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: "25.x.x" | |
| - name: Setup Aikido Safe Chain | |
| working-directory: ./frontend | |
| run: | | |
| npm i -g @aikidosec/safe-chain | |
| safe-chain setup-ci | |
| - name: Install dependencies | |
| working-directory: ./frontend | |
| run: npm ci --safe-chain-skip-minimum-package-age | |
| - name: Run Linter | |
| working-directory: ./frontend | |
| run: node --run lint | |
| - name: Check Formatting | |
| working-directory: ./frontend | |
| run: node --run format:check | |
| - name: Build | |
| working-directory: ./frontend | |
| run: node --run build | |
| - name: Type Checking | |
| working-directory: ./frontend | |
| run: node --run typecheck | |
| - name: Check translations | |
| working-directory: ./frontend | |
| run: node --run translations:check | |
| backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| name: Checkout code | |
| - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| name: Set up Go | |
| with: | |
| go-version: stable | |
| cache: true | |
| cache-dependency-path: backend/go.sum | |
| - name: Install Buf CLI | |
| uses: bufbuild/buf-action@219c9aef02e8f6a27e4b46274db239ef513f5d53 # v1.4.0 | |
| with: | |
| setup_only: true | |
| version: 1.66.1 | |
| - name: Verify Protobufs | |
| working-directory: ./backend | |
| run: | | |
| buf build --error-format=github-actions | |
| buf lint --error-format github-actions | |
| buf format --diff --error-format github-actions --exit-code | |
| - name: Compile Protobufs | |
| working-directory: ./backend | |
| run: | | |
| go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.36.11 | |
| buf generate | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0 | |
| with: | |
| version: v2.11 | |
| working-directory: ./backend | |
| - name: Verify dependencies | |
| working-directory: ./backend | |
| run: go mod verify | |
| - name: Build | |
| working-directory: ./backend | |
| run: go build -v ./... | |
| - name: Run Tests | |
| working-directory: ./backend | |
| run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./... | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 | |
| with: | |
| use_oidc: true | |
| fail_ci_if_error: true |