Skip to content

feat(ci): add GHCR build workflow for intermediate versions #42

feat(ci): add GHCR build workflow for intermediate versions

feat(ci): add GHCR build workflow for intermediate versions #42

Workflow file for this run

name: CI
on: pull_request
jobs:
hadolint:
name: runner / hadolint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: reviewdog/action-hadolint@v1
with:
fail_on_error: true
reporter: github-pr-review
dotenv-linter:
name: runner / dotenv-linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dotenv-linter/action-dotenv-linter@v2
with:
reporter: github-pr-review
tests:
name: runner / tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: 1.22
- name: Unit Tests
run: "go test \
-v \
-covermode atomic \
-coverprofile=coverage.txt \
./internal/..."
- name: Upload coverage report
run: bash <(curl -s https://codecov.io/bash)
integration-tests:
name: runner / integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v3
- name: Integration tests
run: "docker compose \
-f docker-compose.yml -f docker-compose-integration.yml \
up \
--build \
--abort-on-container-exit \
--exit-code-from integration"