Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Update README.md

Update README.md #147

Workflow file for this run

name: CI Build
on:
- push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache go modules
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
${{ runner.os }}-go-
- name: Install dependencies
run: go get -t ./...
- name: golangci-lint
run: ci/install_and_run_golangci-lint.sh
- name: Create credentials file
run: |
mkdir ~/.release-droid/
echo 'github_oauth_access_token=${{ secrets.EXA_CI_2_TOKEN_FOR_UNIFYING_ISSUE_LABELS }}' > ~/.release-droid/credentials
- name: test
run: go test -coverprofile=coverage.out -p 1 ./...
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}