From 0e5fe4c6ab6d83aad5987423fb8a2065510bcf46 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 11 Nov 2022 21:58:57 +0100 Subject: [PATCH] CI: run golang race checker --- .github/workflows/tests.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bbd0e5d49..da7431295 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -37,6 +37,13 @@ jobs: check_changelog: true install_verb: install + - job_name: Linux (race) + go: 1.19.x + os: ubuntu-latest + test_fuse: true + test_opts: "-race" + install_verb: install + - job_name: Linux go: 1.18.x os: ubuntu-latest @@ -152,7 +159,7 @@ jobs: env: RESTIC_TEST_FUSE: ${{ matrix.test_fuse }} run: | - go test -cover ./... + go test -cover ${{matrix.test_opts}} ./... - name: Test cloud backends env: