summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Paul <n@nc0.fr>2023-06-28 21:22:46 +0200
committerNicolas Paul <n@nc0.fr>2023-06-28 21:22:46 +0200
commitf81511c66349f39319c2d94ac624d7124492b11a (patch)
tree5085a264143e8aa1281c349306077a48f4cff874
parent3b005eccb004b52c8f516c8d767acafcaee5577b (diff)
Add GitHub Actions
-rw-r--r--.github/workflows/ci.yml39
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