chore: remove copyright from files #747
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: ci | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "**/*.go" | |
- "*.go" | |
- "go.mod" | |
- "go.sum" | |
pull_request: | |
paths: | |
- "**/*.go" | |
- "*.go" | |
- "go.mod" | |
- "go.sum" | |
jobs: | |
ci: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set Git Line Endings | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
if: matrix.os == 'windows-latest' | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22.3" | |
cache: true | |
- name: Install Task | |
uses: arduino/setup-task@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Test | |
run: task test | |
- name: Build | |
run: task build | |
- name: Install golangci-lint | |
if: matrix.os == 'ubuntu-latest' | |
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest | |
- name: Lint Code | |
if: matrix.os == 'ubuntu-latest' | |
run: task lint | |
- name: Code Coverage | |
if: matrix.os == 'ubuntu-latest' | |
uses: codecov/codecov-action@v4 |