mirror of
https://github.com/NexVeridian/ark-invest-api-rust.git
synced 2025-09-02 09:59:11 +00:00
1.2.0
License
This commit is contained in:
parent
887458907e
commit
9426313f73
7 changed files with 94 additions and 10 deletions
20
.github/workflows/docker.yml
vendored
20
.github/workflows/docker.yml
vendored
|
@ -5,15 +5,15 @@ name: Docker
|
|||
# separate terms of service, privacy policy, and support
|
||||
# documentation.
|
||||
on:
|
||||
# workflow_run:
|
||||
# workflows: [nextest]
|
||||
# branches: [main]
|
||||
# types:
|
||||
# - completed
|
||||
schedule:
|
||||
- cron: 0 0 * * 1
|
||||
push:
|
||||
branches: ["main"]
|
||||
workflow_run:
|
||||
workflows: [nextest]
|
||||
branches: [main]
|
||||
types:
|
||||
- completed
|
||||
# schedule:
|
||||
# - cron: 0 0 * * 1
|
||||
# push:
|
||||
# branches: ["main"]
|
||||
# # Publish semver tags as releases.
|
||||
# tags: [ 'v*.*.*' ]
|
||||
# pull_request:
|
||||
|
@ -29,7 +29,7 @@ jobs:
|
|||
build:
|
||||
runs-on: ubuntu-latest
|
||||
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-a-workflow-based-on-the-conclusion-of-another-workflow
|
||||
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
|
45
.github/workflows/nextest.yml
vendored
Normal file
45
.github/workflows/nextest.yml
vendored
Normal file
|
@ -0,0 +1,45 @@
|
|||
# https://github.com/nextest-rs/reuse-build-partition-example
|
||||
# https://keliris.dev/articles/setup-rust-github-actions
|
||||
|
||||
name: nextest
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
push:
|
||||
branches: [main]
|
||||
schedule:
|
||||
- cron: 0 0 * * 1
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
run-tests:
|
||||
name: Run tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
# - uses: rui314/setup-mold@v1
|
||||
- name: install mold
|
||||
run: sudo apt-get install -y musl-tools musl-dev libssl-dev clang mold
|
||||
# https://github.com/moonrepo/setup-rust
|
||||
- uses: moonrepo/setup-rust@v1
|
||||
with:
|
||||
bins: cargo-nextest
|
||||
- name: Run tests
|
||||
run: cargo nextest run -E "all() - test(get_api) - kind(bin)"
|
||||
|
||||
clippy:
|
||||
name: Clippy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
# - uses: rui314/setup-mold@v1
|
||||
- name: install mold
|
||||
run: sudo apt-get install -y musl-tools musl-dev libssl-dev clang mold
|
||||
- uses: moonrepo/setup-rust@v1
|
||||
with:
|
||||
components: clippy
|
||||
- name: clippy
|
||||
run: cargo clippy
|
Loading…
Add table
Add a link
Reference in a new issue