Skip to content

Update tests.yml

Update tests.yml #865

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
jobs:
test:
container:
image: ubuntu:latest
runs-on:
group: default
labels: opslevel
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch all tags
run: git fetch --force --tags
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Tests
run: |-
task setup
task lint
task test
- name: Upload Coverage
run: |-
bash <(curl -s https://codecov.io/bash)