chore(github): add a fuller smoke test to CI checks #427
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: Verify v14-alpha | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - v14-alpha | |
| push: | |
| branches: | |
| - main | |
| - v14-alpha | |
| jobs: | |
| build-for-npm: | |
| name: Build packages | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install rust toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: stable | |
| override: true | |
| components: rustfmt, clippy | |
| - name: Set up cargo cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Install npm dependencies | |
| run: npm install | |
| - name: Install just | |
| uses: extractions/setup-just@v1 | |
| with: | |
| just-version: 1.35.0 | |
| - name: Install jq | |
| run: sudo apt-get update && sudo apt-get install -y jq | |
| - name: Check cargo | |
| run: just check-cargo | |
| - name: Lint formatting | |
| run: just check-formatting | |
| - name: Lint clippy | |
| run: just check-clippy | |
| - name: Cargo test | |
| run: just test | |
| - name: Build npm packages | |
| run: just build-for-platform linux-x64-glibc | |
| - name: Upload npm packages | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: npm-packages | |
| path: npm/ | |
| smoke-test: | |
| name: Smoke Test Node.js ${{ matrix.node-version }}) | |
| runs-on: ubuntu-22.04 | |
| needs: build-for-npm | |
| strategy: | |
| matrix: | |
| node-version: [16, 18, 20, 22] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Download npm packages | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: npm-packages | |
| path: npm/ | |
| - name: Smoke test | |
| run: | | |
| cd fixtures/fluid-framework | |
| ../../npm/packages/syncpack/index.cjs --dependencies jest |