mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-06-03 01:44:53 +00:00
33 lines
697 B
YAML
33 lines
697 B
YAML
name: Unit tests
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
env:
|
|
FORCE_COLOR: 1
|
|
jobs:
|
|
unit-tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Install Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: ^1.20
|
|
- name: Install earthly
|
|
uses: Luet-lab/luet-install-action@v1
|
|
with:
|
|
repository: quay.io/kairos/packages
|
|
packages: utils/earthly
|
|
- name: Run tests
|
|
run: |
|
|
earthly -P +test
|
|
- name: Codecov
|
|
uses: codecov/codecov-action@v3
|
|
with:
|
|
file: ./coverage.out
|