Skip to content

chore: bump golangci/golangci-lint-action from 8.0.0 to 9.2.0 #102

chore: bump golangci/golangci-lint-action from 8.0.0 to 9.2.0

chore: bump golangci/golangci-lint-action from 8.0.0 to 9.2.0 #102

Workflow file for this run

name: Pull Request
on:
pull_request:
types: ["synchronize", "opened", "reopened", "ready_for_review"]
branches:
- main
env:
DB_VERSION: 1.1.0
GO_VERSION: "1.24"
NODE_VERSION: "20"
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
run-ci:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
if: ${{ !github.event.pull_request.draft }}
steps:
# If the condition above is not met, aka, the PR is not in draft status, then this step is skipped.
# Because this step is part of the critical path, omission of this step will result in remaining CI steps not gettinge executed.
# As of 8/8/2022 there is now way to enforce this beahvior in GitHub Actions CI.
- run: exit 0
Docker:
needs: [run-ci]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
- name: Build
run: |
docker system prune -a -f
docker build --no-cache -t api-server:test .
Linting:
needs: [run-ci]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
- name: Lint Internal Package
uses: golangci/[email protected]
with:
args: --verbose --timeout 5m
Tests:
runs-on: ubuntu-latest
needs: [run-ci]
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Setup Nodejs
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Dependencies
run: make tests
- name: Go Coverage Badge
uses: tj-actions/coverage-badge-go@v3
with:
filename: coverage.out
- name: Commit reviewable diff
uses: stefanzweifel/git-auto-commit-action@e348103e9026cc0eee72ae06630dbe30c8bf7a79 # v5
with:
commit_message: "ci: commit coverage badge"
API-Test:
runs-on: ubuntu-latest
needs: [run-ci]
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
- name: API Test
run: |
make ci-tests