Skip to content

go1.25

go1.25 #21

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 55, Col: 1): 'name' is already defined, (Line: 56, Col: 1): 'on' is already defined, (Line: 63, Col: 1): 'jobs' is already defined
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
# Run daily at 2 AM UTC to check for new vulnerabilities
- cron: "0 2 * * *"
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
timeout-minutes: 15
strategy:
matrix:
go-version: [1.25.x, 1.24.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.7.2
- name: Build
run: go build -v ./...
- name: Run govulncheck
uses: golang/govulncheck-action@v1
with:
go-version-input: ${{ matrix.go-version }}
- name: Test
run: go test -race ./...
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
strategy:
matrix:
go-version: [1.23.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- name: Go Lint Standard
uses: golangci/golangci-lint-action@v3
with:
version: v1.63
args: "--out-${NO_FUTURE}format colored-line-number --timeout=15m"
- run: go vet ./...
- run: go test ./...
# Copied from .travis.yml but never migrated to github actions
# - language: node_js
# node_js: 10
# script:
# - cd jirabot
# - yarn
# - yarn ci