Skip to content

feat: update license #14

feat: update license

feat: update license #14

Workflow file for this run

# Copyright (c) 2023 0x6flab
#
# SPDX-License-Identifier: GNU GENERAL PUBLIC LICENSE
name: Continuous Integration
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
build-across-platforms:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: ["1.16", "1.17", "1.18", "1.19", "1.20", "1.21"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Run examples
run: |
make examples
testing:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Check linting
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin latest
make lint
- name: Run tests
run: |
make test
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: goveralls -coverprofile=cover.out -service=github