diff options
| author | Nicolas Paul <n@nc0.fr> | 2023-10-02 09:01:47 +0200 |
|---|---|---|
| committer | Nicolas Paul <n@nc0.fr> | 2023-10-02 09:11:12 +0200 |
| commit | 43d6226d5481ca6d8216780cc3bb971a3c3c0931 (patch) | |
| tree | 621851e2f23c6d0b00544ca91da1b3ade754c289 /.github | |
| parent | aff0b44f520aca6b1a77f6a195072dc10f69b8c8 (diff) | |
Update CI to use new structure
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yml | 51 |
1 files changed, 20 insertions, 31 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69851d4..1b786e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,41 +38,30 @@ on: pull_request: branches: [master] jobs: - lint: - name: Lint - runs-on: ubuntu-latest - timeout-minutes: 4 - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v4 - with: - go-version: "1.16" - - run: | - go fmt ./... - go vet ./... - test: - name: Test - runs-on: ubuntu-latest - timeout-minutes: 10 - steps: - - uses: actions/checkout@v4 - - 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 - timeout-minutes: 5 + ci: + name: Continuous Integration strategy: + fail-fast: true matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - go: ["1.16", "1.17", "1.18", "1.19", "1.20"] + os: [windows-latest, macos-latest, ubuntu-latest] + go-version: ["1.16", "1.17", "1.18", "1.19", "1.20", "1.21"] runs-on: ${{ matrix.os }} + timeout-minutes: 3 steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: - go-version: ${{ matrix.go }} - - run: go build -v -o svgu.o cmd/svgu/svgu.go + go-version: ${{ matrix.go-version }} + - run: go fmt ./... + name: Check formatting + - run: go vet ./... + name: Vet for issues + - run: go test ./... + name: Run tests + - run: go build -o svgu.o + name: Build executable + - uses: actions/upload-artifact@v3 + with: + name: build-${{ matrix.os }}-go-${{ matrix.go-version }} + path: svgu.o + if-no-file-found: error |
