Skip to content

chore: remove bearer.yml workflow #221

chore: remove bearer.yml workflow

chore: remove bearer.yml workflow #221

Workflow file for this run

name: Run Testing
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
# Label of the container job
runner-job:
strategy:
matrix:
os: [ubuntu-latest]
go: [1.23, 1.24, 1.25]
name: ${{ matrix.os }} @ Go ${{ matrix.go }}
runs-on: ${{ matrix.os }}
steps:
- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: 4
- name: Start MongoDB 4.2
uses: supercharge/[email protected]
with:
mongodb-version: 4.2
- name: Start PostgreSQL 14
uses: harmon758/postgresql-action@v1
with:
postgresql db: testdb
postgresql user: testuser
postgresql password: testpw
postgresql version: "14"
- uses: niden/actions-memcached@v7
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Checkout Code
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Run Tests
run: |
go test -v -covermode=atomic -coverprofile=coverage.out ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
vulnerability-scanning:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/[email protected]
with:
scan-type: "fs"
ignore-unfixed: true
format: "sarif"
output: "trivy-results.sarif"
exit-code: "1"
severity: "CRITICAL,HIGH"