Skip to content

Commit

Permalink
Trying to use matrix for top-level working directory...
Browse files Browse the repository at this point in the history
  • Loading branch information
signorecello committed Dec 20, 2023
1 parent 2d634a5 commit 3937265
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/latest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/testingslack.yaml

This file was deleted.

0 comments on commit 3937265

Please sign in to comment.