Configure Renovate #40
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: Continuous integration | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: {} | |
| jobs: | |
| ci: | |
| runs-on: shipfox-2vcpu-ubuntu-2204 | |
| timeout-minutes: 60 | |
| steps: | |
| - name: git checkout | |
| uses: actions/[email protected] | |
| with: | |
| fetch-depth: 0 | |
| - name: Check Nixpkgs inputs | |
| uses: DeterminateSystems/flake-checker-action@main | |
| with: | |
| fail-mode: true | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@main | |
| - uses: DeterminateSystems/magic-nix-cache-action@main | |
| - name: Get pnpm store directory | |
| shell: nix develop --command bash {0} | |
| run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
| # we don't use actions/setup-node because of Nix usage | |
| - name: Setup pnpm cache | |
| uses: actions/[email protected] | |
| with: | |
| path: ${{ env.STORE_PATH }} | |
| key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm-store- | |
| - name: Install npm dependencies | |
| shell: nix develop --command bash {0} | |
| run: pnpm -r install --frozen-lockfile | |
| - name: Run checks | |
| shell: nix develop --command bash {0} | |
| run: pnpm nx run-many -t test -t lint -t build -t typecheck |