Skip to content

Add preview command #54

Add preview command

Add preview command #54

Workflow file for this run

---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: go
on:
push:
branches:
- main
tags-ignore:
- "*"
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
cache: true
go-version-file: 'go.mod'
- name: Install coverage tools
run: |
go install github.com/axw/gocov/gocov@latest
go install github.com/AlekSi/gocov-xml@latest
- name: Build
run: CGO_ENABLED=0 go build -v -o conflictless cmd/conflictless/main.go
- name: Test
run: gocov test ./... | gocov-xml > coverage.xml
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.61.0