Skip to content

Merge pull request #32 from raito-io/update-dependencies #55

Merge pull request #32 from raito-io/update-dependencies

Merge pull request #32 from raito-io/update-dependencies #55

Workflow file for this run

name: Raito CLI - AWS Organization Plugin - Build
on:
push:
branches:
- 'main'
pull_request:
env:
GOPRIVATE: "github.com/raito-io/*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache-dependency-path: "go.sum"
check-latest: true
cache: true
- name: Configure git for private modules
run: git config --global url."https://${{secrets.CI_SECRETS_TOKEN_USER}}:${{secrets.CI_SECRETS_TOKEN}}@github.com".insteadOf "https://github.com"
- name: Mod Tidy
run: go mod tidy
- name: Build
run: make build
- name: Lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.61.0
- name: Test
run: make test-coverage
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./unit-test-coverage.txt