Skip to content

chore(build): Refactor CI/CD workflows #150

chore(build): Refactor CI/CD workflows

chore(build): Refactor CI/CD workflows #150

Workflow file for this run

name: presubmit
on:
pull_request:
branches:
- dev
env:
GO_VERSION: 1.23.x
GOLINT_ARGS: -v --allow-parallel-runners --timeout=10m --disable errcheck
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code ⏬
uses: actions/checkout@v4
- name: Setup Go 🛠️
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Test pkg library 🔎
run: |
cd pkg
go test ./...
- name: Test CloudFormation runtime 🔎
run: |
cd runtimes/cloudformation
go test ./...
- name: Lint pkg library 🪥
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
working-directory: ./pkg
args: ${{ env.GOLINT_ARGS }}
- name: Lint CloudFormation runtime 🪥
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
working-directory: ./runtimes/cloudformation/cmd/handler
args: ${{ env.GOLINT_ARGS }}
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code ⏬
uses: actions/checkout@v4
- name: Setup Go 🛠️
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Build handler 🏗️
run: |
cd runtimes/cloudformation/cmd/handler
go build .