Skip to content

Bump golang.org/x/net from 0.7.0 to 0.17.0 #827

Bump golang.org/x/net from 0.7.0 to 0.17.0

Bump golang.org/x/net from 0.7.0 to 0.17.0 #827

Workflow file for this run

name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: '1.20'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Build
run: go build -v ./...
test:
name: test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: '1.20'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Test
run: go test -vet=all -v ./...
gofmt:
name: gofmt
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: '1.20'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Ensure all files were formatted as per gofmt
run: |
[ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ]
copyright:
name: copyright
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: '1.20'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Copyright linter - Go
run: |
./.github/workflows/copyright_linter.sh ./.github/workflows/go-copyright-header.txt go
- name: Copyright linter - HTML
run: |
./.github/workflows/copyright_linter.sh ./.github/workflows/html-copyright-header.txt html
- name: Copyright linter - JavaScript
run: |
./.github/workflows/copyright_linter.sh ./.github/workflows/js-copyright-header.txt js