Skip to content

chore: remove template #65

chore: remove template

chore: remove template #65

Workflow file for this run

name: ci
on:
push:
branches:
- '**'
jobs:
free-disk-space:
runs-on: ubuntu-22.04
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: true
build:
needs: free-disk-space
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Print Go environment
run: go env
- name: Build Application
run: make build
lint:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Run Lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59
args: --timeout=10m
unit-tests:
needs: build
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Run Unit Tests
run: |
make test
integration-tests:
needs: build
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Run Integration Tests
run: sudo make test-e2e
check-mock-gen:
needs: build
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Run make mock-gen
run: make mock-gen
- name: Check for uncommitted changes
run: |
if ! git diff --exit-code; then
echo "Uncommitted changes detected. Please run 'make mock-gen' before committing."
exit 1
fi
# docker_pipeline:
# uses: babylonlabs-io/.github/.github/workflows/[email protected]
# secrets: inherit
# with:
# publish: false
# dockerfile: ./contrib/images/babylond/Dockerfile
# repoName: babylond