Skip to content

chore: Migrate jobs to gh action #1

chore: Migrate jobs to gh action

chore: Migrate jobs to gh action #1

name: PR Code checks
on:
pull_request:
branches:
- "main"
- "release-*"
paths-ignore:
- 'docs/**'
- '**.md'
workflow_dispatch:
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Prepare test
uses: "./.github/template/prepare-checks"
- name: Run tests
run: make test
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Prepare test
uses: "./.github/template/prepare-checks"
- name: Run linting
uses: golangci/golangci-lint-action@v3
with:
install-mode: binary
version: latest
args: --timeout=5m --config=./.golangci.yaml
markdown-link-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Validate links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: '.mlc.config.json'
folder-path: '.'
max-depth: -1
check-modified-files-only: 'yes'
base-branch: ${{ github.base_ref }}