Skip to content

Update CI

Update CI #1163

Workflow file for this run

name: build
on:
push:
branches:
- main
pull_request:
jobs:
job-test:
name: Test
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEBUG: 1
steps:
- name: Show rate limit
run: |
curl -sL -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.v3+json" https://api.github.com/rate_limit
- name: Check out source code
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod
- name: Run lint
uses: reviewdog/action-golangci-lint@v2
- name: Run tests
run: make ci
- name: Run test_central
if: ${{ github.event_name == 'pull_request' }}
run: make test_central
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
- name: Build octocov and run as a action
uses: ./testdata/actions/coverage
env:
MACKEREL_API_KEY: ${{ secrets.MACKEREL_API_KEY }}
- name: Show rate limit
run: |
curl -sL -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.v3+json" https://api.github.com/rate_limit