Skip to content

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

chore(build): Refactor CI/CD workflows

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

Workflow file for this run

name: presubmit
on:
pull_request:
branches:
- dev
env:
GO_VERSION: 1.23.x
jobs:
test-pkg-lib:
name: Test pkg library
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 🔎
run: |
cd pkg
go test ./...
- name: Lint ✨
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
working-directory: ./pkg
args: -v --allow-parallel-runners --timeout=10m
test-cfn-runtime:
name: Test CloudFormation runtime
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Test 🔎
run: |
cd runtimes/cloudformation
go test ./...
- name: Lint ✨
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
working-directory: ./pkg
args: -v --allow-parallel-runners --timeout=10m
build-cfn-runtime:
name: Build CloudFormation runtime
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Build handler 🏗️
run: |
cd runtimes/cloudformation/cmd/handler
go build .