Skip to content

chore: bump @commitlint/config-conventional from 20.3.0 to 20.4.0 #123

chore: bump @commitlint/config-conventional from 20.3.0 to 20.4.0

chore: bump @commitlint/config-conventional from 20.3.0 to 20.4.0 #123

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: "22"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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@v6
- 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@v6
- 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@v6
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@04702edda442b2e678b25b537cec683a1493fcb9 # v5
with:
commit_message: "ci: commit coverage badge"
API-Test:
runs-on: ubuntu-latest
needs: [run-ci]
steps:
- name: Checkout
uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
- name: API Test
run: |
make ci-tests
semantic:
name: "Semantic Release Dry Run"
needs: [run-ci]
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
steps:
- name: Setup nodeJs
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
- name: Check out code into the Go module directory
uses: actions/checkout@v6
- name: Install dependencies
run: npm ci
- name: Semantic Release Dry Run
run: npx semantic-release --dry-run