Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

chore(ci): implement code scanning (#17) #44

chore(ci): implement code scanning (#17)

chore(ci): implement code scanning (#17) #44

Workflow file for this run

# Copyright (c) 2023, Circle Internet Financial, LTD. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
# 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: Go Test
on:
push:
branches:
- master
- release/*
pull_request:
branches:
- master
jobs:
build:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: 1.20.3
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Clean dependencies
run: go clean --modcache
- name: Get dependencies
run: go mod tidy
- name: Run Tests
run: make test_unit
scan:
needs: build
if: github.event_name == 'pull_request'
uses: circlefin/circle-public-github-workflows/.github/workflows/pr-scan.yaml@v1
release-sbom:
needs: build
if: github.event_name == 'push'
uses: circlefin/circle-public-github-workflows/.github/workflows/attach-release-assets.yaml@v1