Bump goreleaser/goreleaser-action from 4 to 6 #159
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
# This GitHub action runs your tests for each commit push and/or PR. Optionally | |
# you can turn it on using a cron schedule for regular testing. | |
# | |
name: Tests | |
on: | |
pull_request: | |
paths-ignore: | |
- 'README.md' | |
push: | |
paths-ignore: | |
- 'README.md' | |
- '.github/workflows/build-and-push-ftb.yml' | |
- '.github/workflows/build-and-push.yml' | |
- '.github/workflows/release.yml' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# For systems with an upstream API that could drift unexpectedly (like most SaaS systems, etc.), | |
# we recommend testing at a regular interval not necessarily tied to code changes. This will | |
# ensure you are alerted to something breaking due to an API change, even if the code did not | |
# change. | |
# schedule: | |
# - cron: '0 13 * * *' | |
jobs: | |
# ensure the code builds... | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.18' | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3.3.0 | |
- name: Get dependencies | |
run: | | |
go mod tidy | |
go mod download | |
- name: Build | |
run: | | |
go build -v . | |
ftbtest: | |
name: File to BIND Testing | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3.3.0 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: | | |
"${{ secrets.REGISTRY_REPO }}" | |
tags: | | |
type=raw,value=latest-test | |
- name: Build and test | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
push: false | |
file: Containerfile.test | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |