Skip to content

🌱 Bump golang from 1.22.2 to 1.22.3 (#631) #1459

🌱 Bump golang from 1.22.2 to 1.22.3 (#631)

🌱 Bump golang from 1.22.2 to 1.22.3 (#631) #1459

Workflow file for this run

# Copyright 2021 OpenSSF Scorecard Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: build
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
PROTOC_VERSION: 3.17.3
GO_VERSION: 1.21
jobs:
build-scorecard-webapp:
name: build-scorecard-webapp
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Clone the code
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: ${{ env.GO_VERSION }}
- name: Run linter
uses: golangci/golangci-lint-action@23faadfdeb23a6f9e511beaba149bb123b5b145a # v6.0.0
with:
args: --config=.golangci.yml
- name: Check license headers
run: |
go env -w GOFLAGS=-mod=mod
go install github.com/google/addlicense@2fe3ee94479d08be985a84861de4e6b06a1c7208
addlicense -ignore "app/server/testdata/**" -ignore "app/generated/**" -ignore "scorecards-site/**" -l apache -c 'OpenSSF Scorecard Authors' -v *
git diff --exit-code
- name: Run build
run: |
go env -w GOFLAGS=-mod=mod
make scorecard-webapp
- name: Tests
env:
GITHUB_AUTH_TOKEN: ${{ github.token }} # needed for the e2e tests
run: |
cd app/server && go test