1
0
mirror of https://github.com/fluencelabs/aquavm synced 2025-03-16 21:10:48 +00:00

178 lines
4.2 KiB
YAML
Raw Normal View History

2022-09-20 18:25:55 +03:00
name: "e2e"
on:
pull_request:
paths-ignore:
- "**.md"
- ".github/**"
- "!.github/workflows/e2e.yml"
- "!.github/workflows/e2e-label.yml"
- "!.github/workflows/snapshot-*.yml"
types:
- "labeled"
- "synchronize"
- "opened"
- "reopened"
push:
branches:
- "master"
paths-ignore:
- "**.md"
- ".github/**"
- "!.github/workflows/e2e.yml"
- "!.github/workflows/e2e-label.yml"
- "!.github/workflows/snapshot-*.yml"
2022-09-20 18:25:55 +03:00
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
air-interpreter-wasm:
name: "aquavm"
if: >
github.event_name == 'push' ||
(
contains(github.event.pull_request.labels.*.name, 'e2e') &&
!github.event.pull_request.head.repo.fork
)
uses: ./.github/workflows/snapshot-air-interpreter-wasm.yml
with:
ref: ${{ github.ref }}
air-beautify-wasm:
name: "aquavm"
if: >
github.event_name == 'push' ||
(
contains(github.event.pull_request.labels.*.name, 'e2e') &&
!github.event.pull_request.head.repo.fork
)
uses: ./.github/workflows/snapshot-air-beautify-wasm.yml
with:
ref: ${{ github.ref }}
avm:
name: "aquavm"
needs: air-interpreter-wasm
uses: ./.github/workflows/snapshot-avm.yml
with:
ref: ${{ github.ref }}
cargo:
name: "aquavm"
needs: air-interpreter-wasm
uses: ./.github/workflows/snapshot-cargo.yml
2022-11-16 14:49:51 +02:00
with:
ref: ${{ github.ref }}
2022-09-20 18:25:55 +03:00
nox:
2022-09-20 18:25:55 +03:00
needs:
- cargo
2022-09-20 18:25:55 +03:00
uses: fluencelabs/nox/.github/workflows/build.yml@master
2022-09-20 18:25:55 +03:00
with:
2022-11-16 14:49:51 +02:00
cargo-dependencies: |
[
{
"package": "avm-server",
"version": "=${{ needs.cargo.outputs.version }}",
"registry": "fluence"
},
{
"package": "air-interpreter-wasm",
"version": "=${{ needs.cargo.outputs.version }}",
"registry": "fluence"
}
]
nox-snapshot:
name: "nox"
needs:
- nox
uses: fluencelabs/nox/.github/workflows/container.yml@master
with:
image-name: "docker.fluence.dev/aquavm"
flavour: "minimal"
nox-sha: "${{ needs.nox.outputs.rust-peer-sha }}"
nox-tests:
name: "nox"
needs:
- cargo
uses: fluencelabs/nox/.github/workflows/tests.yml@master
with:
cargo-dependencies: |
2022-11-16 14:49:51 +02:00
[
{
"package": "avm-server",
"version": "=${{ needs.cargo.outputs.version }}",
2022-11-16 14:49:51 +02:00
"registry": "fluence"
},
{
"package": "air-interpreter-wasm",
"version": "=${{ needs.cargo.outputs.version }}",
2022-11-16 14:49:51 +02:00
"registry": "fluence"
}
]
2022-09-20 18:25:55 +03:00
js-client-tests:
name: "js-client"
2022-09-20 18:25:55 +03:00
needs:
- avm
- nox-snapshot
2022-09-20 18:25:55 +03:00
uses: fluencelabs/js-client/.github/workflows/tests.yml@master
2022-09-20 18:25:55 +03:00
with:
avm-version: "${{ needs.avm.outputs.version }}"
nox-image: "${{ needs.nox-snapshot.outputs.nox-image }}"
2022-09-20 18:25:55 +03:00
js-client:
2022-09-20 18:25:55 +03:00
needs:
- avm
2022-09-20 18:25:55 +03:00
uses: fluencelabs/js-client/.github/workflows/snapshot.yml@master
2022-09-20 18:25:55 +03:00
with:
avm-version: "${{ needs.avm.outputs.version }}"
2022-09-20 18:25:55 +03:00
flox-snapshot:
name: "flox"
needs:
- js-client
uses: fluencelabs/flox/.github/workflows/snapshot.yml@main
with:
js-client-snapshots: "${{ needs.js-client.outputs.js-client-snapshots }}"
aqua:
2022-09-20 18:25:55 +03:00
needs:
- js-client
- nox-snapshot
2022-09-20 18:25:55 +03:00
uses: fluencelabs/aqua/.github/workflows/tests.yml@main
2022-09-20 18:25:55 +03:00
with:
js-client-snapshots: "${{ needs.js-client.outputs.js-client-snapshots }}"
nox-image: "${{ needs.nox-snapshot.outputs.nox-image }}"
registry:
needs:
- flox-snapshot
- nox-snapshot
uses: fluencelabs/registry/.github/workflows/tests.yml@main
with:
nox-image: "${{ needs.nox-snapshot.outputs.nox-image }}"
flox-version: "${{ needs.flox-snapshot.outputs.version }}"
flox:
needs:
- nox-snapshot
- js-client
uses: fluencelabs/flox/.github/workflows/tests.yml@main
with:
nox-image: "${{ needs.nox-snapshot.outputs.nox-image }}"
js-client-snapshots: "${{ needs.js-client.outputs.js-client-snapshots }}"