From c2fe7e6d08872a44739a409134a7002f81fc9587 Mon Sep 17 00:00:00 2001 From: Dan Hensby Date: Mon, 4 Sep 2023 01:48:45 +0100 Subject: [PATCH] ci: run the action as part of CI --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a60a686..8649a07 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -117,6 +117,34 @@ jobs: echo "# Code coverage" >> $GITHUB_STEP_SUMMARY npx nyc report | sed --expression='1d;$d' >> $GITHUB_STEP_SUMMARY if: always() + runaction: + needs: + - commitlint + - codelint + - buildlint + - test + strategy: + matrix: + os: [ 'windows-2022', 'windows-2019' ] + sqlserver: [ 'sql-latest', 'sql-2022', 'sql-2019', 'sql-2017', 'sql-2016', 'sql-2014', 'sql-2012', 'sql-2008' ] + # These sqlserver versions don't work on windows-2022 (at the moment) + exclude: + - os: windows-2022 + sqlserver: sql-2008 + - os: windows-2022 + sqlserver: sql-2012 + - os: windows-2022 + sqlserver: sql-2014 + runs-on: ${{ matrix.os }} + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + persist-credentials: false + - name: Install sql server + uses: ./ + with: + sqlserver-version: ${{ matrix.sqlserver }} release: name: Release concurrency: release @@ -127,6 +155,7 @@ jobs: - codelint - buildlint - test + - runaction permissions: contents: write # to be able to publish a GitHub release issues: write # to be able to comment on released issues