Skip to content

Refactorings + Tests #1

Refactorings + Tests

Refactorings + Tests #1

Workflow file for this run

name: CI
on:
pull_request:
tags-ignore: ["*"]
branches: [c4t, dev]
push:
branches: [c4t, dev]
workflow_dispatch:
# Cancel ongoing workflow runs if a new one is started
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
go_version: '~1.20.12'
jobs:
setup:
name: Common Setup
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-22.04 ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
id: setup_go
uses: actions/setup-go@v3
with:
go-version: ${{ env.go_version }}
check-latest: true
unit:
name: Unit Tests
runs-on: ${{ matrix.os }}
needs: setup
steps:
- name: build_test
shell: bash
run: ./scripts/build_test.sh
lint:
name: Static Analysis
runs-on: ${{ matrix.os }}
needs: setup
steps:
- shell: bash
run: scripts/lint.sh
go_mod_tidy:
name: Check state of go.mod and go.sum
runs-on: ${{ matrix.os }}
needs: setup
steps:
- name: Go Mod Tidy
shell: bash
run: go mod tidy
- name: Check Clean Branch
shell: bash
run: .github/workflows/check-clean-branch.sh