Skip to content

Commit 1b14014

Browse files
beeme1mrjeefy
andauthored
ci: use self-hosted runner provided by the CNCF (#325)
Signed-off-by: Michael Beemer <[email protected]> Signed-off-by: Jeffrey Sica <[email protected]> Co-authored-by: Jeffrey Sica <[email protected]>
1 parent d467811 commit 1b14014

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,23 @@ on:
1111

1212
jobs:
1313
main:
14-
runs-on: ubuntu-latest
14+
runs-on: equinix-4cpu-16gb
1515
steps:
1616
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
1717
with:
1818
# We need to fetch all branches and commits so that Nx affected has a base to compare against.
1919
fetch-depth: 0
20-
- uses: nrwl/nx-set-shas@40f1175ceec169e68c9857c27aa7c5063692aa9a # v4
2120
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
2221
with:
2322
node-version: 18
2423
cache: 'npm'
24+
# Mark your git directory as safe for self-hosted runners
25+
# https://github.com/nrwl/nx-set-shas?tab=readme-ov-file#self-hosted-runners
26+
- name: Set Directory as Safe
27+
run: |
28+
git config --add safe.directory "$GITHUB_WORKSPACE"
29+
shell: bash
30+
- uses: nrwl/nx-set-shas@40f1175ceec169e68c9857c27aa7c5063692aa9a # v4
2531
- run: npm ci
2632
- run: npx nx affected --target=lint --parallel=3
2733
- run: npx nx affected --target=build --parallel=3 --ci

0 commit comments

Comments
 (0)