diff options
| author | Nicolas Paul <n@nc0.fr> | 2023-05-26 14:13:11 +0200 |
|---|---|---|
| committer | Nicolas Paul <n@nc0.fr> | 2023-05-26 14:13:11 +0200 |
| commit | e00e455cafb72edb4bddd7bc087e1fb0ff1e4e45 (patch) | |
| tree | 7f3d4782862595c3da5a4d5c6c9a73b21a017bae /.github | |
Migrating from GitHub
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0e8a5a6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +# Copyright (c) 2023 Nicolas Paul All rights reserved. +# Use of this source code is governed by a BSD-style +# license that can be found in the LICENSE file. + +name: CI +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + go: + name: Golang CI + runs-on: ${{ matrix.os }} + timeout-minutes: 5 + strategy: + fail-fast: true + matrix: + os: + - ubuntu-22.04 + - macos-12 + go_version: + - "1.19" + steps: + - uses: actions/checkout@v3 + name: Cloning repository + - uses: actions/setup-go@v4 + name: Installing Go ${{ matrix.go_version }} + with: + go-version: ${{ matrix.go_version }} + - name: Building project + run: go build -race -v -o=staticgovanityurls . + - name: Testing project + run: go test + - name: Downloading goimports + run: go install golang.org/x/tools/cmd/goimports@latest + - name: Formatting project + run: goimports -e -d -l . + # TODO: doc: |
