Release v2.0.5 #318
Workflow file for this run
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: | |
push: | |
branches: | |
- master | |
tags: | |
- "v*" | |
pull_request: | |
jobs: | |
test: | |
name: "Test & upload coverage" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "stable" | |
- name: Get external dependencies (Ubuntu) | |
run: sudo apt update && sudo apt -y install build-essential libvips-dev | |
- name: Migration test | |
run: go test -v -tags migrationtest ./... | |
- name: Run coverage | |
run: go test -race -coverprofile=coverage.txt -covermode=atomic -tags test ./... | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} |