Skip to content

Feat context cancel

Feat context cancel #6

Workflow file for this run

---
name: Pull request pipeline.
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
env:
GOLANG_VERSION: 1.22
jobs:
scans:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Trivy vulnerability scanner in fs mode
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
scan-ref: '.'
trivy-config: trivy.yaml
golang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup golang ${{ env.GOLANG_VERSION }}
uses: actions/setup-go@v4
with:
go-version: ${{ env.GOLANG_VERSION }}
- name: install tools
run: make install-ci
- name: test + lint + scan
run: make ci