mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-12 17:55:33 +00:00
fd8d4defcf
* Notify on release failure * Add `e2e / status` * Update renovate config * Add timeout * Update
85 lines
1.8 KiB
YAML
85 lines
1.8 KiB
YAML
name: "e2e"
|
|
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- "**.md"
|
|
push:
|
|
branches:
|
|
- "main"
|
|
|
|
concurrency:
|
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
tests:
|
|
name: "Run sbt tests"
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: fluencelabs/aqua
|
|
|
|
- name: Cache Scala
|
|
uses: coursier/cache-action@v6
|
|
|
|
- name: Setup Scala
|
|
uses: coursier/setup-action@v1
|
|
with:
|
|
apps: sbt
|
|
|
|
- name: Run tests
|
|
run: sbt test
|
|
|
|
aqua:
|
|
name: "aqua"
|
|
uses: ./.github/workflows/snapshot.yml
|
|
with:
|
|
ref: ${{ github.ref }}
|
|
|
|
aqua-playground:
|
|
needs: aqua
|
|
uses: fluencelabs/aqua-playground/.github/workflows/tests.yml@master
|
|
with:
|
|
aqua-version: "${{ needs.aqua.outputs.aqua-version }}"
|
|
|
|
registry:
|
|
needs: aqua
|
|
uses: fluencelabs/registry/.github/workflows/tests.yml@main
|
|
with:
|
|
aqua-version: "${{ needs.aqua.outputs.aqua-version }}"
|
|
|
|
fluence-cli:
|
|
needs: aqua
|
|
uses: fluencelabs/fluence-cli/.github/workflows/tests.yml@main
|
|
with:
|
|
aqua-version: "${{ needs.aqua.outputs.aqua-version }}"
|
|
|
|
status:
|
|
runs-on: ubuntu-latest
|
|
if: always()
|
|
needs:
|
|
- fluence-cli
|
|
- registry
|
|
- aqua-playground
|
|
|
|
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
|