From b8941e22f78723f9a61c473377ed89abc534c855 Mon Sep 17 00:00:00 2001 From: Michael Beemer Date: Fri, 26 Jul 2024 19:05:30 -0400 Subject: [PATCH] ci: use self-hosted runner provided by the CNCF (#325) Signed-off-by: Michael Beemer Signed-off-by: Jeffrey Sica Co-authored-by: Jeffrey Sica --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d99c7aa6..53a50650 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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