Skip to content

refactor(deprecation): update goose.Run to goose.RunContext #134

refactor(deprecation): update goose.Run to goose.RunContext

refactor(deprecation): update goose.Run to goose.RunContext #134

Workflow file for this run

name: commit
on:
push:
branches: [main]
jobs:
gitleaks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
lint-go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "^1.21"
- uses: golangci/golangci-lint-action@v3
lint-dockerfile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: hadolint/hadolint-action@v3.1.0
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:alpine
ports:
- 5432:5432
env:
POSTGRES_DB: template
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
redis:
image: redis
ports:
- 6379:6379
env:
CONFIG_PATH: "${{ github.workspace }}/config/config.yaml"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "^1.21"
- name: migrate
run: go run cmd/migrate/migrate.go up
- name: tests
run: go test -v ./...
release:
needs: [gitleaks, lint-go, lint-dockerfile, test]
runs-on: ubuntu-latest
steps:
- uses: joaofnds/semantic-release-action@v1.1.0
with:
plugins: "conventional-changelog-conventionalcommits"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}