diff options
| author | Nicolas Paul <n@nc0.fr> | 2023-06-28 21:22:46 +0200 |
|---|---|---|
| committer | Nicolas Paul <n@nc0.fr> | 2023-06-28 21:22:46 +0200 |
| commit | f81511c66349f39319c2d94ac624d7124492b11a (patch) | |
| tree | 5085a264143e8aa1281c349306077a48f4cff874 /.github | |
| parent | 3b005eccb004b52c8f516c8d767acafcaee5577b (diff) | |
Add GitHub Actions
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..eb17976 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI +on: + push: +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: "1.16" + - run: | + go fmt ./... + go vet ./... + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: "1.16" + - run: | + cd testdata + go run ../cmd/svgu/svgu.go -o=dst -v -c=DOMAINS.star + build: + name: Build + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + go: ["1.16", "1.17", "1.18", "1.19", "1.20"] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go }} + - run: go build -v -o svgu.o cmd/svgu/svgu.go
\ No newline at end of file |
