Skip to content

Commit

Permalink
ci: use self-hosted runner provided by the CNCF (#325)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Beemer <[email protected]>
Signed-off-by: Jeffrey Sica <[email protected]>
Co-authored-by: Jeffrey Sica <[email protected]>
  • Loading branch information
beeme1mr and jeefy authored Jul 26, 2024
1 parent d467811 commit 1b14014
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,23 @@ on:

jobs:
main:
runs-on: ubuntu-latest
runs-on: equinix-4cpu-16gb
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
# We need to fetch all branches and commits so that Nx affected has a base to compare against.
fetch-depth: 0
- uses: nrwl/nx-set-shas@40f1175ceec169e68c9857c27aa7c5063692aa9a # v4
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
node-version: 18
cache: 'npm'
# Mark your git directory as safe for self-hosted runners
# https://github.com/nrwl/nx-set-shas?tab=readme-ov-file#self-hosted-runners
- name: Set Directory as Safe
run: |
git config --add safe.directory "$GITHUB_WORKSPACE"
shell: bash
- uses: nrwl/nx-set-shas@40f1175ceec169e68c9857c27aa7c5063692aa9a # v4
- run: npm ci
- run: npx nx affected --target=lint --parallel=3
- run: npx nx affected --target=build --parallel=3 --ci
Expand Down

0 comments on commit 1b14014

Please sign in to comment.