Skip to content

chore(deps): update dependency eslint-plugin-cypress to v4 #4562

chore(deps): update dependency eslint-plugin-cypress to v4

chore(deps): update dependency eslint-plugin-cypress to v4 #4562

Workflow file for this run

name: Tests
on:
pull_request:
jobs:
frontend:
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: .node-version
- run: make build-frontend
- uses: actions/upload-artifact@v4
with:
name: frontend
path: internal/http/frontend/dist
if-no-files-found: error
retention-days: 1
frontend-eslint:
runs-on: ubuntu-22.04
permissions:
contents: read
checks: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: .node-version
- run: cd internal/http/frontend && npm ci
- name: Save Code Linting Report JSON
run: cd internal/http/frontend && npm run lint:report
- name: Annotate Code Linting Results
if: always()
uses: ataylorme/eslint-annotate-action@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
report-json: "internal/http/frontend/eslint_report.json"
- uses: actions/upload-artifact@v4
if: always()
with:
name: frontend-eslint-report
if-no-files-found: error
retention-days: 30
path: internal/http/frontend/eslint_report.json
frontend-unit-tests:
runs-on: ubuntu-22.04
permissions:
contents: read
checks: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: .node-version
- run: cd internal/http/frontend && npm ci
- run: make frontend-unit-test
- uses: actions/upload-artifact@v4
if: always()
with:
name: frontend-unit-test-report
if-no-files-found: error
retention-days: 30
path: internal/http/frontend/reports/unit
- name: Publish Test Report
if: always()
uses: mikepenz/action-junit-report@v4
with:
report_paths: "internal/http/frontend/reports/unit/*.xml"
test_files_prefix: "internal/http/frontend"
require_tests: true
check_retries: true
detailed_summary: true
fail_on_failure: true
token: ${{ secrets.GITHUB_TOKEN }}
check_name: Frontend Unit Tests
job_name: Tests
frontend-e2e-tests:
runs-on: ubuntu-22.04
permissions:
contents: read
checks: write
strategy:
fail-fast: false
matrix:
browser: ["firefox", "chrome", "electron"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: .node-version
- run: cd internal/http/frontend && npm ci
- run: make frontend-e2e-test-${{ matrix.browser }}
- uses: actions/upload-artifact@v4
if: always()
with:
name: frontend-e2e-test-report-${{ matrix.browser }}
if-no-files-found: error
retention-days: 30
path: internal/http/frontend/reports/e2e
- name: Publish Test Report
if: always()
uses: mikepenz/action-junit-report@v4
with:
report_paths: "internal/http/frontend/reports/e2e/*.xml"
test_files_prefix: "internal/http/frontend"
require_tests: true
check_retries: true
detailed_summary: true
fail_on_failure: true
token: ${{ secrets.GITHUB_TOKEN }}
check_name: Frontend E2E Tests (${{ matrix.browser }})
job_name: Tests
- uses: actions/upload-artifact@v4
if: always()
with:
name: frontend-e2e-screenshots-${{ matrix.browser }}
path: internal/http/frontend/cypress/screenshots
if-no-files-found: ignore
retention-days: 30
- uses: actions/upload-artifact@v4
if: always()
with:
name: frontend-e2e-videos-${{ matrix.browser }}
path: internal/http/frontend/cypress/videos
if-no-files-found: ignore
retention-days: 30
backend-benchmark-tests:
runs-on: ubuntu-22.04
needs: frontend
permissions:
contents: read
checks: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Copy built frontend
uses: actions/download-artifact@v4
with:
name: frontend
path: internal/http/frontend/dist
- run: go generate ./...
- run: make benchmark
backend-race-tests:
runs-on: ubuntu-22.04
needs: frontend
permissions:
contents: read
checks: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Copy built frontend
uses: actions/download-artifact@v4
with:
name: frontend
path: internal/http/frontend/dist
- run: go generate ./...
- name: Race tests
run: |
go test ./... -race
backend-unit-tests:
runs-on: ubuntu-22.04
needs: frontend
permissions:
contents: read
checks: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Copy built frontend
uses: actions/download-artifact@v4
with:
name: frontend
path: internal/http/frontend/dist
- run: go generate ./...
- name: Unit tests
run: |
go install github.com/jstemmer/go-junit-report/v2@latest
go install github.com/vakenbolt/go-test-report@latest
env CGO_ENABLED=0 go test -v ./... 2>&1 > out.txt || true
env CGO_ENABLED=0 go test -v ./... -json 2>&1 > json-out.txt || true
cat out.txt | go-junit-report -out report.xml -iocopy
cat json-out.txt | go-test-report -o report.html
- name: Publish Test Report
if: always()
uses: mikepenz/action-junit-report@v4
with:
report_paths: "report.xml"
require_tests: true
check_retries: true
detailed_summary: true
fail_on_failure: true
token: ${{ secrets.GITHUB_TOKEN }}
check_name: Backend Unit Tests
- uses: actions/upload-artifact@v4
if: always()
with:
name: backend-test-report-xml
path: report.xml
if-no-files-found: error
retention-days: 30
- uses: actions/upload-artifact@v4
if: always()
with:
name: backend-test-report-html
path: report.html
if-no-files-found: error
retention-days: 30
backend-unit-tests-coverage:
runs-on: ubuntu-22.04
needs: frontend
permissions:
contents: read
checks: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Copy built frontend
uses: actions/download-artifact@v4
with:
name: frontend
path: internal/http/frontend/dist
- run: go generate ./...
- name: Unit tests
run: |
env CGO_ENABLED=0 go test -v ./... -coverprofile coverage.out -coverpkg=./... -covermode atomic
- uses: codecov/codecov-action@v4
if: always()
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: backend
fail_ci_if_error: true
- uses: actions/upload-artifact@v4
if: always()
with:
name: backend-coverage
path: coverage.out
if-no-files-found: error
retention-days: 30