Skip to content

Commit

Permalink
Use open source setup and runners
Browse files Browse the repository at this point in the history
  • Loading branch information
allenli873 committed Dec 29, 2024
1 parent 6868344 commit 371eea4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 82 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ on:

jobs:
check-dist:
runs-on: rez
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- run: dawn setup
- uses: actions/setup-node@v4
with:
node-version: 20

- id: npm-cache-dir
shell: bash
Expand Down
74 changes: 0 additions & 74 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

16 changes: 10 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@ on: # rebuild any PRs and main branch changes

jobs:
build: # make sure build/ci work properly
runs-on: rez
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: dawn setup

- uses: actions/setup-node@v4
with:
node-version: 20

- id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
run: echo "dir=$(npm config get cache)" >> "${GITHUB_OUTPUT}"
- uses: actions/cache@v4
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
Expand All @@ -27,7 +31,7 @@ jobs:
- run: |
npm run all
test-setup: # have the action save the cache
runs-on: rez
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
Expand All @@ -46,7 +50,7 @@ jobs:
cat "$HOME/.m2/repository/com/twosigma/foo/foo.pom"
test-validation: # validate the cache has the correct contents
runs-on: rez
runs-on: ubuntu-latest
needs: [test-setup]
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 371eea4

Please sign in to comment.