Skip to content

feat(chore): storages externalization refactoring #1745

feat(chore): storages externalization refactoring

feat(chore): storages externalization refactoring #1745

Workflow file for this run

name: Build container and validate lint/tests
on:
pull_request:
workflow_dispatch:
env:
GO_VERSION: '1.22'
jobs:
lint-validation:
name: Validate Go code linting
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: --timeout=240s
unit-test-golang:
needs: lint-validation
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Run unit static tests
run: go test -v
validate-prod-container-building:
needs: unit-test-golang-with-services

Check failure on line 39 in .github/workflows/non-regression.yml

View workflow run for this annotation

GitHub Actions / Build container and validate lint/tests

Invalid workflow file

The workflow is not valid. .github/workflows/non-regression.yml (Line: 39, Col: 12): Job 'validate-prod-container-building' depends on unknown job 'unit-test-golang-with-services'.
name: Validate that the container build for prod
runs-on: ubuntu-latest
steps:
-
name: Checkout code
uses: actions/checkout@v4
-
name: Build the stack
run: docker network create your_network || true
-
name: Build the stack
run: docker compose -f docker-compose.yml.prod up -d --build --force-recreate --remove-orphans
-
name: Souin container healthceck
run: docker compose -f docker-compose.yml.prod exec -T souin ls