fix(deps): update module github.com/metal-toolbox/fleetdb to v1.20.1 #1422
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: firmware-syncer CI | |
on: | |
push: | |
branches: | |
- '*' | |
tags: | |
- 'v*.*.*' | |
- 'v*.*.*-staging' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
lint-test-build-artifacts: | |
name: 🏗️ Lint, test and build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.22 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Configure git for private modules | |
env: | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: git config --global url."https://${TOKEN}:[email protected]".insteadOf "https://github.com/equinixmetal" | |
- name: Run golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
skip-cache: true | |
version: v1.61.0 | |
args: --config .golangci.yml --timeout=5m | |
- name: Run firmware-syncer tests | |
run: make test | |
- name: Build firmware-syncer executable | |
run: make build-linux | |
- uses: actions/upload-artifact@v4 | |
if: ( contains(github.ref, 'tags') && ! contains(github.ref, 'staging') ) | |
with: | |
name: firmware-syncer-artifacts | |
path: | | |
firmware-syncer | |
firmware-syncer_checksum.txt | |
publish-executables: | |
name: 📦 Publish firmware-syncer executable | |
runs-on: ubuntu-latest | |
if: ( contains(github.ref, 'tags') && ! contains(github.ref, 'staging') ) | |
needs: lint-test-build-artifacts | |
steps: | |
- name: Set up Go 1.22 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
id: go | |
- name: Set git token env var | |
env: | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: git config --global url."https://${TOKEN}:[email protected]".insteadOf "https://github.com/equinixmetal" | |
- uses: actions/download-artifact@v4 | |
with: | |
name: firmware-syncer-artifacts | |
- name: Create a new release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: false | |
prerelease: false | |
- name: release artifact files | |
uses: softprops/action-gh-release@v2 | |
if: contains(github.ref, 'tags') | |
with: | |
files: | | |
firmware-syncer | |
firmware-syncer_checksum.txt |