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:
Anatolios Laskaris 2023-04-03 15:06:02 +03:00 committed by GitHub
parent 9e0eb8d3bf
commit 00b62f1459
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 44 additions and 26 deletions

View File

@ -8,6 +8,11 @@ on:
- "!.github/workflows/e2e.yml"
- "!.github/workflows/tests.yml"
- "!.github/workflows/snapshot.yml"
types:
- "labeled"
- "synchronize"
- "opened"
- "reopened"
push:
branches:
- "master"
@ -23,13 +28,10 @@ concurrency:
cancel-in-progress: true
jobs:
tests:
name: "js-client"
uses: ./.github/workflows/tests.yml
with:
ref: ${{ github.ref }}
js-client:
if: >
github.event_name == 'push' ||
contains(github.event.pull_request.labels.*.name, 'e2e')
uses: ./.github/workflows/snapshot.yml
with:
ref: ${{ github.ref }}
@ -42,25 +44,10 @@ jobs:
with:
js-client-snapshots: "${{ needs.js-client.outputs.js-client-snapshots }}"
status:
runs-on: ubuntu-latest
if: always()
fluence-cli:
needs:
- aqua-playground
- js-client
steps:
- uses: lwhiteley/dependent-jobs-result-check@v1
id: status
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
uses: fluencelabs/fluence-cli/.github/workflows/tests.yml@main
with:
js-client-snapshots: "${{ needs.js-client.outputs.js-client-snapshots }}"

30
.github/workflows/run-tests.yml vendored Normal file
View 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 }}

View File

@ -39,6 +39,7 @@ jobs:
node-version:
- 16.x
- 17.x
- 18.x
steps:
- name: Import secrets