Skip to content

feat: update packages #170

feat: update packages

feat: update packages #170

Workflow file for this run

---
name: ci
on:
- push
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: latest
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- run: cd deployments && docker compose up -d --wait
- run: cd cmd/fandogh && go run main.go migrate
- run: go test -v ./... -covermode=atomic -coverprofile=coverage.out
- uses: codecov/codecov-action@v5
with:
files: coverage.out
docker:
runs-on: ubuntu-latest
needs:
- lint
- test
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v6
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
file: "build/package/Dockerfile"
context: .
platforms: linux/amd64
push: true
tags: |
ghcr.io/1995parham-teaching/fandogh:latest