From f81511c66349f39319c2d94ac624d7124492b11a Mon Sep 17 00:00:00 2001 From: Nicolas Paul Date: Wed, 28 Jun 2023 21:22:46 +0200 Subject: Add GitHub Actions --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/ci.yml 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 -- cgit v1.2.3