Skip to content

sync cmd: Remove global variable ChromeVersion #428

sync cmd: Remove global variable ChromeVersion

sync cmd: Remove global variable ChromeVersion #428

Workflow file for this run

name: Testing
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "5 1 * * *"
workflow_dispatch:
jobs:
golangci:
name: Linting
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23'
cache: false
- name: Run go fmt
if: runner.os != 'Windows'
run: diff -u <(echo -n) <(gofmt -d -s .)
- name: Run Unit tests
run: make test
- name: golangci-lint
uses: golangci/golangci-lint-action@v6.1.0
with:
version: v1.60.3
args: --disable staticcheck --enable errcheck,gosimple,govet,ineffassign,typecheck,unused,misspell
# golangci-lint contains only a set of rules from staticcheck.
# It's not the same thing as the staticcheck binary.
# Hence we deactivate it above and run it alone.
# See https://golangci-lint.run/usage/linters/#enabled-by-default
- name: Run staticcheck
uses: dominikh/staticcheck-action@v1.3.1
with:
version: "2024.1.1"
compile:
name: Compile application
runs-on: ubuntu-22.04
needs: [golangci]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Build
run: go build -race -o buchhalter