Skip to content

Commit

Permalink
Merge branch 'master' into feat/add-mixed-mining-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
caiquejjx authored Jul 22, 2024
2 parents 2fe61e2 + 2544793 commit d74e3fe
Show file tree
Hide file tree
Showing 257 changed files with 12,329 additions and 7,251 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/prune-prereleases.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports = async ({ github, context }) => {

// Pruning rules:
// 1. only keep the earliest (by created_at) release of the month
// 2. to keep the newest 3 nightlies
// 2. to keep the newest 30 nightlies (to make sure nightlies are kept until the next monthly release)
// Notes:
// - This addresses https://github.com/foundry-rs/foundry/issues/6732
// - Name of the release may deviate from created_at due to the usage of different timezones.
Expand All @@ -47,7 +47,7 @@ module.exports = async ({ github, context }) => {
const groups = groupBy(nightlies, i => i.created_at.slice(0, 7));
const nightliesToPrune = Object.values(groups)
.reduce((acc, cur) => acc.concat(cur.slice(0, -1)), []) // rule 1
.slice(3); // rule 2
.slice(30); // rule 2

for (const nightly of nightliesToPrune) {
console.log(`Deleting nightly: ${nightly.tag_name}`);
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/bump-forge-std.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Daily CI job to update forge-std version used for tests if new release has been published

name: bump-forge-std

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
update-tag:
name: update forge-std tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Fetch and update forge-std tag
run: curl 'https://api.github.com/repos/foundry-rs/forge-std/tags' | jq '.[0].commit.sha' -jr > testdata/forge-std-rev
- name: Create pull request
uses: peter-evans/create-pull-request@v5
with:
commit-message: "chore: bump forge-std version used for tests"
title: "chore(tests): bump forge-std version"
body: |
New release of forge-std has been published, bump forge-std version used in tests. Likely some fixtures need to be updated.
branch: chore/bump-forge-std
2 changes: 1 addition & 1 deletion .github/workflows/nextest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
python-version: 3.11
- name: Install Vyper
if: contains(matrix.name, 'external')
run: pip install vyper~=0.3.10
run: pip install vyper~=0.4.0

- name: Forge RPC cache
uses: actions/cache@v3
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,21 @@ jobs:
with:
cache-on-failure: true
- run: cargo hack check

ci-success:
runs-on: ubuntu-latest
if: always()
needs:
- nextest
- docs
- doctest
- clippy
- rustfmt
- forge-fmt
- crate-checks
timeout-minutes: 30
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
Loading

0 comments on commit d74e3fe

Please sign in to comment.