From 3937265c1ce2954cd4916873f81b86eef3fc32cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pedro=20Sousa?= Date: Wed, 20 Dec 2023 12:21:21 +0000 Subject: [PATCH] Trying to use matrix for top-level working directory... --- .github/scripts/latest.js | 2 +- .github/workflows/nightly.yaml | 6 +++--- .github/workflows/testingslack.yaml | 5 ----- 3 files changed, 4 insertions(+), 9 deletions(-) delete mode 100644 .github/workflows/testingslack.yaml diff --git a/.github/scripts/latest.js b/.github/scripts/latest.js index 3052b74..2355b1c 100644 --- a/.github/scripts/latest.js +++ b/.github/scripts/latest.js @@ -20,7 +20,7 @@ async function main() { const latestPreRelease = filtered.find(release => release.prerelease).tag_name; // TODO: add the prerelease to this object! - const workflowOutput = JSON.stringify({ stable: latestStable }); + const workflowOutput = JSON.stringify({ stable: latestStable, prerelease: latestPreRelease }); console.log(workflowOutput); // DON'T REMOVE, GITHUB WILL CAPTURE THIS OUTPUT } diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 1dddde5..f885031 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -30,18 +30,18 @@ jobs: MATRIX=$(echo "$VERSIONS" | jq -c '{versions: .} | .versions | to_entries | map({key: .key, value: (.value | sub("^v"; ""))})') echo "::set-output name=matrix::{\"include\":$MATRIX}" - test-drift-vite-hardhat: + test-drift: needs: setup runs-on: ubuntu-latest defaults: run: - working-directory: vite-hardhat + working-directory: ${{ matrix.project }} strategy: matrix: version: - version: ${{fromJson(needs.setup.outputs.matrix.key)}} - version_number: ${{fromJson(needs.setup.outputs.matrix.value)}} - project: [vite-hardhat] + project: [vite-hardhat, with-foundry] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/testingslack.yaml b/.github/workflows/testingslack.yaml deleted file mode 100644 index 1e2acf2..0000000 --- a/.github/workflows/testingslack.yaml +++ /dev/null @@ -1,5 +0,0 @@ -name: Testing - -on: - # Giving ourselves a way to trigger this manually - push: