mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-03-14 22:10:49 +00:00
chore: E2E updates [fixes FLU-297, FLU-298, FLU-267] (#16)
This commit is contained in:
parent
064ccb07dd
commit
70778db42e
63
.github/workflows/e2e.yml
vendored
63
.github/workflows/e2e.yml
vendored
@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
@ -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 }}
|
5
.github/workflows/tests.yml
vendored
5
.github/workflows/tests.yml
vendored
@ -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:
|
||||||
|
@ -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].
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user