mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-04-25 09:52:12 +00:00
chore(e2e): e2e update [fixes FLU-297, FLU-298, FLU-267] (#296)
* Add fluence-cli * Update e2e * Run on labeled * Cleanup * Use main branch
This commit is contained in:
parent
9e0eb8d3bf
commit
00b62f1459
39
.github/workflows/e2e.yml
vendored
39
.github/workflows/e2e.yml
vendored
@ -8,6 +8,11 @@ on:
|
|||||||
- "!.github/workflows/e2e.yml"
|
- "!.github/workflows/e2e.yml"
|
||||||
- "!.github/workflows/tests.yml"
|
- "!.github/workflows/tests.yml"
|
||||||
- "!.github/workflows/snapshot.yml"
|
- "!.github/workflows/snapshot.yml"
|
||||||
|
types:
|
||||||
|
- "labeled"
|
||||||
|
- "synchronize"
|
||||||
|
- "opened"
|
||||||
|
- "reopened"
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "master"
|
- "master"
|
||||||
@ -23,13 +28,10 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
|
||||||
name: "js-client"
|
|
||||||
uses: ./.github/workflows/tests.yml
|
|
||||||
with:
|
|
||||||
ref: ${{ github.ref }}
|
|
||||||
|
|
||||||
js-client:
|
js-client:
|
||||||
|
if: >
|
||||||
|
github.event_name == 'push' ||
|
||||||
|
contains(github.event.pull_request.labels.*.name, 'e2e')
|
||||||
uses: ./.github/workflows/snapshot.yml
|
uses: ./.github/workflows/snapshot.yml
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
@ -42,25 +44,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
js-client-snapshots: "${{ needs.js-client.outputs.js-client-snapshots }}"
|
js-client-snapshots: "${{ needs.js-client.outputs.js-client-snapshots }}"
|
||||||
|
|
||||||
status:
|
fluence-cli:
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: always()
|
|
||||||
needs:
|
needs:
|
||||||
- aqua-playground
|
- js-client
|
||||||
|
|
||||||
steps:
|
uses: fluencelabs/fluence-cli/.github/workflows/tests.yml@main
|
||||||
- uses: lwhiteley/dependent-jobs-result-check@v1
|
with:
|
||||||
id: status
|
js-client-snapshots: "${{ needs.js-client.outputs.js-client-snapshots }}"
|
||||||
with:
|
|
||||||
statuses: failure,cancelled,skipped
|
|
||||||
dependencies: ${{ toJSON(needs) }}
|
|
||||||
|
|
||||||
- name: Log output
|
|
||||||
run: |
|
|
||||||
echo "statuses:" "${{ steps.status.outputs.statuses }}"
|
|
||||||
echo "jobs:" "${{ steps.status.outputs.jobs }}"
|
|
||||||
echo "found any?:" "${{ steps.status.outputs.found }}"
|
|
||||||
|
|
||||||
- name: Fail run
|
|
||||||
if: fromJSON(steps.status.outputs.found)
|
|
||||||
run: exit 1
|
|
||||||
|
30
.github/workflows/run-tests.yml
vendored
Normal file
30
.github/workflows/run-tests.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: "test"
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- "**.md"
|
||||||
|
- ".github/**"
|
||||||
|
- "!.github/workflows/e2e.yml"
|
||||||
|
- "!.github/workflows/tests.yml"
|
||||||
|
- "!.github/workflows/snapshot.yml"
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "master"
|
||||||
|
paths-ignore:
|
||||||
|
- "**.md"
|
||||||
|
- ".github/**"
|
||||||
|
- "!.github/workflows/e2e.yml"
|
||||||
|
- "!.github/workflows/tests.yml"
|
||||||
|
- "!.github/workflows/snapshot.yml"
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
tests:
|
||||||
|
name: "js-client"
|
||||||
|
uses: ./.github/workflows/tests.yml
|
||||||
|
with:
|
||||||
|
ref: ${{ github.ref }}
|
1
.github/workflows/tests.yml
vendored
1
.github/workflows/tests.yml
vendored
@ -39,6 +39,7 @@ jobs:
|
|||||||
node-version:
|
node-version:
|
||||||
- 16.x
|
- 16.x
|
||||||
- 17.x
|
- 17.x
|
||||||
|
- 18.x
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Import secrets
|
- name: Import secrets
|
||||||
|
Loading…
x
Reference in New Issue
Block a user