Skip to content

Commit 8ba83e6

Browse files
authored
ci: Try to run tests on pull request (Quenty#577)
* ci: Try to run tests on pull request * ci: Tests do not say anything about funding * fix: Try to lint on pull_request too * ci: Rename lint -> linting because github is confused
1 parent b980b62 commit 8ba83e6

4 files changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
name: build
22
on: [push]
33
jobs:
4-
lint:
5-
uses: ./.github/workflows/lint.yml
4+
build-linting:
5+
uses: ./.github/workflows/linting.yml
66

77
release:
8-
needs: [lint]
8+
needs: [build-linting]
99
runs-on: ubuntu-latest
1010
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
1111
steps:
1212
- name: Checkout repository
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616
persist-credentials: false # https://stackoverflow.com/questions/74744498/github-pushing-to-protected-branches-with-fine-grained-token
@@ -23,16 +23,16 @@ jobs:
2323
cache-dependency-path: package.json # we don't have a package-lock.json so we'll use this instead...
2424
node-version: '18'
2525

26-
- name: Run `npm install --no-package-lock` on cli-output-helpers
27-
run: npm install --no-package-lock
26+
- name: Run `npm install --no-package-lock --no-fund` on cli-output-helpers
27+
run: npm install --no-package-lock --no-fund
2828
working-directory: tools/cli-output-helpers
2929

3030
- name: Build cli-output-helpers
3131
run: npm run build
3232
working-directory: tools/cli-output-helpers
3333

34-
- name: Run `npm install --no-package-lock` on nevermore-template-helpers
35-
run: npm install --no-package-lock
34+
- name: Run `npm install --no-package-lock --no-fund` on nevermore-template-helpers
35+
run: npm install --no-package-lock --no-fund
3636
working-directory: tools/nevermore-template-helpers
3737

3838
- name: Build nevermore-template-helpers
@@ -58,7 +58,7 @@ jobs:
5858
working-directory: tools/nevermore-cli
5959

6060
- name: Run npm install
61-
run: npm install --no-save
61+
run: npm install --no-save --no-fund
6262

6363
- name: Git reset .npmrc
6464
run: git checkout .npmrc

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
name: Build and deploy docs
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313
- uses: actions/setup-node@v2
1414
with:
1515
node-version: '18'
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: lint
2-
on: [pull_request_target, workflow_call]
1+
name: linting
2+
on: [pull_request, workflow_call]
33
jobs:
44
luau-lsp:
55
runs-on: ubuntu-latest
66
steps:
77
- name: Checkout repository
8-
uses: actions/checkout@v2
8+
uses: actions/checkout@v4
99

1010
- name: Setup Aftman
1111
uses: ok-nick/setup-aftman@v0.4.2

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: tests
2-
on: [push]
2+
on: [pull_request]
33
jobs:
44
tests:
55
runs-on: ubuntu-latest
@@ -33,7 +33,7 @@ jobs:
3333
- name: Install package dependencies
3434
run: |
3535
echo "Installing package dependencies..."
36-
npx lerna exec -- npm install --no-audit
36+
npx lerna exec -- npm install --no-audit --no-fund
3737
PACKAGES=$(npx lerna ls --since origin/main --json | jq -r '.[] | select(.name != "@quenty/nevermore-cli") | .location' | tr '\n' ' ')
3838
echo "PACKAGES=$PACKAGES" >> $GITHUB_ENV
3939

0 commit comments

Comments
 (0)