mirror of
https://github.com/paralus/paralus.git
synced 2026-05-13 03:47:08 +00:00
* Update go.yml Updated action version to latest Signed-off-by: Om Aximani <75031769+OmAximani0@users.noreply.github.com> * Update release.yml Updated action version to latest Signed-off-by: Om Aximani <75031769+OmAximani0@users.noreply.github.com> * Updated setup-go action version Signed-off-by: OmAxiani0 <aximaniom@gmail.com> --------- Signed-off-by: Om Aximani <75031769+OmAximani0@users.noreply.github.com> Signed-off-by: OmAxiani0 <aximaniom@gmail.com>
36 lines
727 B
YAML
36 lines
727 B
YAML
name: Go
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.17.x]
|
|
os: [ubuntu-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Format
|
|
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
|
|
|
|
- name: Create k8s Kind Cluster
|
|
uses: helm/kind-action@v1.2.0
|
|
|
|
- name: Test all
|
|
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
|
|
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@v3
|