WIP #1112
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: CI | |
| on: | |
| merge_group: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - tegioz/test-cncf-runners | |
| jobs: | |
| lint-and-test-cli-tool: | |
| runs-on: | |
| labels: equinix-4cpu-16gb | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Install Yarn | |
| run: npm install -g yarn | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: 1.81.0 | |
| components: clippy, rustfmt | |
| - name: Install wasm-pack | |
| run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
| - name: Run rustfmt | |
| run: cargo fmt --all -- --check | |
| - name: Run tests | |
| run: cargo test | |
| lint-and-test-webapp: | |
| runs-on: | |
| labels: ubuntu-latest-8-cores | |
| env: | |
| NODE_OPTIONS: --max_old_space_size=4096 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Cache node modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: ./ui/webapp/node_modules | |
| key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-yarn- | |
| - name: Install dependencies | |
| working-directory: ./ui/webapp | |
| run: yarn install --network-concurrency 1 | |
| - name: Run prettier | |
| working-directory: ./ui/webapp | |
| run: yarn format:diff | |
| - name: Run eslint | |
| working-directory: ./ui/webapp | |
| run: yarn lint | |
| lint-and-test-embed: | |
| runs-on: | |
| labels: ubuntu-latest-8-cores | |
| env: | |
| NODE_OPTIONS: --max_old_space_size=4096 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Cache node modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: ./ui/embed/node_modules | |
| key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-yarn- | |
| - name: Install dependencies | |
| working-directory: ./ui/embed | |
| run: yarn install --network-concurrency 1 | |
| - name: Run prettier | |
| working-directory: ./ui/embed | |
| run: yarn format:diff | |
| - name: Run eslint | |
| working-directory: ./ui/embed | |
| run: yarn lint |