Skip to content

Commit

Permalink
update e2e-tests deps (#1381)
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci authored Nov 19, 2024
1 parent 9640def commit f1631ab
Show file tree
Hide file tree
Showing 5 changed files with 1,141 additions and 1,248 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x

- name: Install deps
run: sudo apt -y install protobuf-compiler
Expand All @@ -40,7 +40,7 @@ jobs:
run: rustup target list --installed

- name: Build EXTRA_ARGS
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
if: ${{ !startsWith(github.ref, 'refs/tags/runtime') }}
run: |
EXTRA_FLAGS+="--disable-spec-check"
echo "Disabling the spec check since we are not releasing"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x
cache: 'yarn'
cache-dependency-path: e2e-tests/yarn.lock

Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/runtime-upgrade-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check permission
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
result-encoding: string
script: |
Expand All @@ -35,7 +35,7 @@ jobs:
steps:
- name: Validate and set inputs
id: test-input
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
result-encoding: string
script: |
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Get branch and sha
id: get-branch-sha
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
result-encoding: string
Expand All @@ -89,7 +89,7 @@ jobs:
core.setOutput("sha", pull_request.data.head.sha)
- name: Post starting comment
uses: actions/github-script@v6
uses: actions/github-script@v7
env:
MESSAGE: |
Runtime upgrade test is scheduled at ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}.
Expand Down Expand Up @@ -126,6 +126,13 @@ jobs:
- name: Build runtime
run: cargo build -p ${{ steps.test-input.outputs.runtime }}-runtime --release --locked

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'yarn'
cache-dependency-path: tests/e2e/yarn.lock

- name: Run runtime upgrade test
id: test
run: |
Expand All @@ -134,7 +141,7 @@ jobs:
yarn test:runtime-upgrade-${{ steps.test-input.outputs.runtime }} > ${{runner.temp}}/out.txt
- name: Post result comment
uses: actions/github-script@v6
uses: actions/github-script@v7
env:
MESSAGE: |
Runtime upgrade test finished:
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"test:runtime-upgrade-astar": "RUNTIME=astar yarn test tests/runtime-upgrade.test.ts"
},
"dependencies": {
"@acala-network/chopsticks-testing": "^0.13.2",
"typescript": "^5.3.0",
"vitest": "^2.0"
"@acala-network/chopsticks-testing": "^1.0.1",
"typescript": "5.6",
"vitest": "^2.1"
},
"prettier": {
"tabWidth": 2,
Expand Down
Loading

0 comments on commit f1631ab

Please sign in to comment.