Update ProQuest ONIX 2.1 (replace zero price composite with UnpricedItemType) #660
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-test-and-check | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
paths: | |
- '**.rs' | |
- '**.js' | |
- '**.json' | |
- '**.html' | |
- 'Cargo.lock' | |
- '**Cargo.toml' | |
- 'diesel.toml' | |
pull_request: | |
paths: | |
- '**.rs' | |
- '**.js' | |
- '**.json' | |
- '**.html' | |
- 'Cargo.lock' | |
- '**Cargo.toml' | |
- 'diesel.toml' | |
env: | |
CARGO_TERM_COLOR: always | |
THOTH_GRAPHQL_API: https://api.thoth.pub | |
THOTH_EXPORT_API: https://export.thoth.pub | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.18.2' | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: jetli/[email protected] | |
with: | |
version: 'v0.12.1' | |
- name: Install rollup | |
run: sudo npm install -g [email protected] | |
- name: Compile WASM | |
run: wasm-pack build thoth-app/ --target web --release | |
- name: Pack APP | |
run: rollup thoth-app/main.js --format iife --file thoth-app/pkg/thoth_app.js | |
- name: Build binary | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --verbose | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.18.2' | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: jetli/[email protected] | |
with: | |
version: 'v0.12.1' | |
- name: Install rollup | |
run: sudo npm install -g [email protected] | |
- name: Compile WASM | |
run: wasm-pack build thoth-app/ --target web --release | |
- name: Pack APP | |
run: rollup thoth-app/main.js --format iife --file thoth-app/pkg/thoth_app.js | |
- name: Build binary | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --verbose | |
- name: Run tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --workspace --verbose | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.18.2' | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: jetli/[email protected] | |
with: | |
version: 'v0.12.1' | |
- name: Install rollup | |
run: sudo npm install -g [email protected] | |
- name: Compile WASM | |
run: wasm-pack build thoth-app/ --target web --release | |
- name: Pack APP | |
run: rollup thoth-app/main.js --format iife --file thoth-app/pkg/thoth_app.js | |
- name: Build binary | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --verbose | |
- name: Run linting | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --all --all-targets --all-features -- -D warnings | |
format_check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt | |
override: true | |
- name: Run format | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check |