chore: E2E updates [fixes FLU-297, FLU-298, FLU-267] (#16)

This commit is contained in:
Anatolios Laskaris 2023-04-04 19:20:55 +03:00 committed by GitHub
parent 064ccb07dd
commit 70778db42e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 59 additions and 24 deletions

View File

@ -4,9 +4,22 @@ on:
pull_request: pull_request:
paths-ignore: paths-ignore:
- "**.md" - "**.md"
- ".github/**"
- "!.github/workflows/e2e.yml"
- "!.github/workflows/snapshot.yml"
types:
- "labeled"
- "synchronize"
- "opened"
- "reopened"
push: push:
branches: branches:
- "master" - "master"
paths-ignore:
- "**.md"
- ".github/**"
- "!.github/workflows/e2e.yml"
- "!.github/workflows/snapshot.yml"
concurrency: concurrency:
group: "${{ github.workflow }}-${{ github.ref }}" group: "${{ github.workflow }}-${{ github.ref }}"
@ -14,25 +27,14 @@ concurrency:
jobs: jobs:
snapshot: snapshot:
if: >
github.event_name == 'push' ||
contains(github.event.pull_request.labels.*.name, 'e2e')
name: "sqlite-wasm" name: "sqlite-wasm"
uses: ./.github/workflows/snapshot.yml uses: ./.github/workflows/snapshot.yml
with: with:
ref: ${{ github.ref }} ref: ${{ github.ref }}
registry:
needs:
- snapshot
uses: fluencelabs/registry/.github/workflows/tests.yml@main
with:
cargo-dependencies: |
[
{
"package": "marine-sqlite-connector",
"version": "=${{ needs.snapshot.outputs.version }}",
"registry": "fluence"
}
]
spell: spell:
needs: needs:
- snapshot - snapshot
@ -51,9 +53,8 @@ jobs:
needs: needs:
- spell - spell
uses: fluencelabs/rust-peer/.github/workflows/snapshot.yml@master uses: fluencelabs/rust-peer/.github/workflows/build.yml@master
with: with:
image-name: "docker.fluence.dev/sqlite-wasm-connector"
cargo-dependencies: | cargo-dependencies: |
[ [
{ {
@ -68,10 +69,36 @@ jobs:
} }
] ]
rust-peer-snapshot:
needs:
- rust-peer
uses: fluencelabs/rust-peer/.github/workflows/container.yml@master
with:
image-name: "docker.fluence.dev/sqlite-wasm-connector"
flavour: "minimal"
rust-peer-sha: "${{ needs.rust-peer.outputs.rust-peer-sha }}"
spell-aqua-tests: spell-aqua-tests:
name: "spell" name: "spell"
needs: needs:
- rust-peer - rust-peer-snapshot
uses: fluencelabs/spell/.github/workflows/tests.yml@main uses: fluencelabs/spell/.github/workflows/tests.yml@main
with: with:
rust-peer-image: "${{ needs.rust-peer.outputs.rust-peer-image }}" rust-peer-image: "${{ needs.rust-peer-snapshot.outputs.rust-peer-image }}"
registry:
needs:
- rust-peer-snapshot
- snapshot
uses: fluencelabs/registry/.github/workflows/tests.yml@main
with:
rust-peer-image: "${{ needs.rust-peer-snapshot.outputs.rust-peer-image }}"
cargo-dependencies: |
[
{
"package": "marine-sqlite-connector",
"version": "=${{ needs.snapshot.outputs.version }}",
"registry": "fluence"
}
]

View File

@ -1,20 +1,27 @@
name: "ci" name: "test"
on: on:
pull_request: pull_request:
paths-ignore: paths-ignore:
- "**.md" - "**.md"
- ".github/**"
- "!.github/workflows/run-tests.yml"
- "!.github/workflows/tests.yml"
push: push:
branches: branches:
- "master" - "master"
paths-ignore:
- "**.md"
- ".github/**"
- "!.github/workflows/run-tests.yml"
- "!.github/workflows/tests.yml"
concurrency: concurrency:
group: "${{ github.workflow }}-${{ github.ref }}" group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
tests: sqlite-wasm:
name: "Run tests"
uses: ./.github/workflows/tests.yml uses: ./.github/workflows/tests.yml
with: with:
ref: ${{ github.ref }} ref: ${{ github.ref }}

View File

@ -1,4 +1,5 @@
name: Run tests name: Run tests with workflow call
on: on:
workflow_call: workflow_call:
inputs: inputs:
@ -10,7 +11,7 @@ on:
jobs: jobs:
tests: tests:
name: "cargo test" name: "cargo test"
runs-on: ubuntu-latest runs-on: builder
timeout-minutes: 60 timeout-minutes: 60
steps: steps:

View File

@ -1,4 +1,4 @@
# SQLite [![Package][package-img]][package-url] [![Documentation][documentation-img]][documentation-url] [![Build][build-img]][build-url] # SQLite [![Package][package-img]][package-url] [![Documentation][documentation-img]][documentation-url]
The package provides an interface to [SQLite][1]. The package provides an interface to [SQLite][1].