Merge pull request #409 from 0nano/0nano-doc-sso-patch #8
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 | |
| on: | |
| push: | |
| paths-ignore: | |
| - "assets/**" | |
| - "docs/**" | |
| - "CHANGELOG.md" | |
| - "README.md" | |
| branches: | |
| - "main" | |
| pull_request: | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| actions: write # Allow canceling in-progress runs | |
| contents: read # Read access to the repository | |
| jobs: | |
| ci: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| run_install: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: package.json | |
| cache: pnpm | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: CI pipeline | |
| run: ./build.sh --skip-pnpm-prune | |
| - name: Run unit tests | |
| run: pnpm run test:unit | |
| - name: Run integration tests | |
| run: pnpm run test:integration | |
| nix: | |
| name: nix | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v4 | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@main | |
| with: | |
| determinate: true | |
| - name: Check flake inputs | |
| uses: DeterminateSystems/flake-checker-action@main | |
| - name: Check flake outputs | |
| run: nix flake check --all-systems |