Build(deps): bump vee-validate from 4.12.3 to 4.12.5 in /ui #3132
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 and test | |
on: | |
merge_group: | |
push: | |
branches: | |
- main | |
- staging | |
- trying | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
web-ui: | |
name: Vue.js app | |
strategy: | |
matrix: | |
node-version: | |
- 18.13.0 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3.3.0 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3.6.0 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
cache-dependency-path: ui/package-lock.json | |
- name: Install | |
run: | | |
cd ui | |
npm install | |
- name: Build | |
run: | | |
cd ui | |
npm run build | |
- uses: actions/upload-artifact@v3.1.2 | |
with: | |
name: ui-dist | |
path: ui/dist/ | |
rust-app: | |
name: Rust app | |
needs: | |
- web-ui | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macOS-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3.3.0 | |
- uses: actions/download-artifact@v3.0.2 | |
with: | |
name: ui-dist | |
path: ui/dist | |
- name: Install Rust (Stable) | |
run: curl https://sh.rustup.rs -sSf | sh -s -- -y | |
- uses: actions/cache@v3.2.3 | |
name: Cache cargo | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Test | |
run: cargo test --verbose | |
env: | |
SKIP_UI_BUILD: true | |
- name: Build | |
run: cargo build --verbose | |
env: | |
SKIP_UI_BUILD: true | |
- name: Upload debug artifact | |
uses: actions/upload-artifact@v3.1.2 | |
with: | |
name: debug_${{ matrix.os }} | |
path: | | |
target/debug/sd2snes-lttp-rando-tracker* | |
!**/*.d | |
!**/*.pdb | |
rustfmt-check: | |
name: Check rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3.3.0 | |
- name: Install Rust nightly | |
run: | | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
rustup default nightly | |
rustup component add rustfmt | |
- uses: actions/cache@v3.2.3 | |
name: Cache cargo | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Check rustfmt | |
run: cargo +nightly fmt -- --check | |
clippy-check: | |
name: Check cargo clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3.3.0 | |
- name: Install Rust | |
run: | | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
rustup default stable | |
rustup component add clippy | |
- uses: actions/cache@v3.2.3 | |
name: Cache cargo | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Run clippy manually without annotations | |
run: cargo clippy --all-targets -- -D warnings | |
cargo-deny: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3.3.0 | |
- uses: EmbarkStudios/cargo-deny-action@v1 |