This repository has been archived by the owner on May 10, 2024. It is now read-only.
chore(deps): bump gorm.io/driver/postgres from 1.3.4 to 1.5.4 #478
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
push: | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: "riotkit-org/backup-repository" | |
permissions: | |
packages: write | |
jobs: | |
test-and-release-snapshot: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- name: Build | |
run: "make build" | |
- name: Test | |
run: "make test" | |
if: "!contains(github.event.head_commit.message, '!test skip')" | |
- name: Convert coverage to lcov format | |
uses: jandelgado/[email protected] | |
if: "!contains(github.event.head_commit.message, '!test skip')" | |
- name: Coveralls | |
uses: coverallsapp/[email protected] | |
if: "!contains(github.event.head_commit.message, '!test skip')" | |
with: | |
github-token: ${{ secrets.github_token }} | |
path-to-lcov: coverage.lcov | |
# ======= | |
# Docker | |
# ======= | |
- name: Log in to the Container registry | |
uses: docker/login-action@dd4fa0671be5250ee6f50aedf4cb05514abda2c7 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@e5622373a38e60fb6d795a4421e56882f2d7a681 | |
with: | |
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
- name: Build and release to container registry | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
push: true | |
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:snapshot | |
labels: ${{ steps.meta.outputs.labels }} | |
test-on-kubernetes: | |
uses: riotkit-org/.github/.github/workflows/python.release.yaml@main | |
with: | |
pythonVersion: 3.11 | |
testCmd: "make k3d skaffold-deploy integration-test" |