Skip to content

Use file lock to synchronize concurrent access #46

Use file lock to synchronize concurrent access

Use file lock to synchronize concurrent access #46

Workflow file for this run

name: build
on:
- push
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
services:
pebble:
image: letsencrypt/pebble
ports:
- 14000:14000
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.21'
check-latest: true
- name: Set up Caching
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run Build
run: make check
- name: Run SonarQube
uses: sonarsource/sonarcloud-github-action@master