build: add lockfile for tileserver npm dependencies #535
Workflow file for this run
This file contains hidden or 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 Check | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| dagger_build: | |
| name: Run a small build | |
| runs-on: ubuntu-latest | |
| env: | |
| DAGGER_NO_NAG: 1 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install Dagger | |
| uses: dagger/dagger-for-github@v6 | |
| with: | |
| version: "latest" | |
| - name: Run build | |
| run: bin/build builds/bogota | |
| www_checks: | |
| defaults: | |
| run: | |
| working-directory: services/frontend/www-app | |
| name: Frontend checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| - run: npm install --global yarn | |
| - run: yarn install | |
| - run: yarn quasar prepare | |
| - run: yarn lint | |
| - run: yarn format-check | |
| - run: yarn tsc | |
| - run: yarn test | |
| travelmux_checks: | |
| defaults: | |
| run: | |
| working-directory: services/travelmux | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| services/travelmux/target/ | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - run: cargo fmt --all --check | |
| - run: cargo clippy --all-features | |
| - run: cargo test --all-targets | |
| - run: cargo build --release | |
| gtfout: | |
| defaults: | |
| run: | |
| working-directory: services/gtfs/gtfout | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| services/travelmux/target/ | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - run: cargo fmt --all --check | |
| - run: cargo clippy --all-targets --all-features | |
| - run: cargo test --all-targets --all-features | |
| - run: cargo build --release |