From f174118d28bb25e3d3858583830b1b7701633379 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Wed, 10 Apr 2024 13:02:55 -0400 Subject: [PATCH] github: align tests job with LXD's Signed-off-by: Simon Deziel --- .github/workflows/tests.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ef8484718..a1f253a35 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,13 +5,22 @@ on: - main pull_request: +permissions: + contents: read + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +defaults: + run: + # Make sure bash is always invoked with `-eo pipefail` + # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell + shell: bash + jobs: code-tests: - name: Code tests + name: Code runs-on: ubuntu-22.04 steps: - name: Checkout @@ -93,7 +102,7 @@ jobs: ssh-keyscan git.launchpad.net >> ~/.ssh/known_hosts ssh-keygen -qlF git.launchpad.net | grep -xF 'git.launchpad.net RSA SHA256:UNOzlP66WpDuEo34Wgs8mewypV0UzqHLsIFoqwe8dYo' - - name: Install Go + - name: Install Go (${{ matrix.go }}) uses: actions/setup-go@v5 with: go-version: 1.22.x