Skip to content

Resolve IDN domains #119

Resolve IDN domains

Resolve IDN domains #119

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
env:
# Those values will quiet git hints about changing default branch name
GIT_CONFIG_COUNT: "1"
GIT_CONFIG_KEY_0: init.defaultBranch
GIT_CONFIG_VALUE_0: main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
runs-on: ubuntu-24.04-arm
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
- uses: golangci/golangci-lint-action@v9
with:
version: latest
- name: Check formatting
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "Files not formatted:"
echo "$unformatted"
exit 1
fi
- name: Check modernized code
run: |
go run golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest -fix ./...
if ! git diff --exit-code; then
echo "Code is not modernized. Run the following locally and commit the changes:"
echo " go run golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest -fix ./..."
exit 1
fi
- name: Test
run: go test ./...