Skip to content

Commit

Permalink
ci: brute force update linting and tests
Browse files Browse the repository at this point in the history
Signed-off-by: Tierney Cyren <[email protected]>
  • Loading branch information
bnb committed Mar 14, 2024
1 parent 89450df commit 72f9dab
Show file tree
Hide file tree
Showing 15 changed files with 265 additions and 25 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/lint-aliases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Test Suite: Linter (aliases)"

on:
push:
pull_request:
paths:
- 'aliases/**'
branches:
- main
workflow_dispatch:

jobs:
tests:
if: github.repository == 'cutenode/nodevu'
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: current
- name: Run npm install -w aliases
run: npm install -w aliases
- name: Run npm run lint -w aliases
run: npm run lint -w aliases
26 changes: 26 additions & 0 deletions .github/workflows/lint-core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Test Suite: Linter (core)"

on:
push:
pull_request:
paths:
- 'core/**'
branches:
- main
workflow_dispatch:

jobs:
tests:
if: github.repository == 'cutenode/nodevu'
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: current
- name: Run npm install -w core
run: npm install -w core
- name: Run npm run lint -w core
run: npm run lint -w core
26 changes: 26 additions & 0 deletions .github/workflows/lint-earliest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Test Suite: Linter (earliest)"

on:
push:
pull_request:
paths:
- 'earliest/**'
branches:
- main
workflow_dispatch:

jobs:
tests:
if: github.repository == 'cutenode/nodevu'
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: current
- name: Run npm install -w earliest
run: npm install -w earliest
- name: Run npm run lint -w earliest
run: npm run lint -w earliest
26 changes: 26 additions & 0 deletions .github/workflows/lint-parsefiles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Test Suite: Linter (parsefiles)"

on:
push:
pull_request:
paths:
- 'parsefiles/**'
branches:
- main
workflow_dispatch:

jobs:
tests:
if: github.repository == 'cutenode/nodevu'
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: current
- name: Run npm install -w parsefiles
run: npm install -w parsefiles
- name: Run npm run lint -w parsefiles
run: npm run lint -w parsefiles
26 changes: 26 additions & 0 deletions .github/workflows/lint-ranges.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Test Suite: Linter (ranges)"

on:
push:
pull_request:
paths:
- 'ranges/**'
branches:
- main
workflow_dispatch:

jobs:
tests:
if: github.repository == 'cutenode/nodevu'
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: current
- name: Run npm install -w ranges
run: npm install -w ranges
- name: Run npm run lint -w ranges
run: npm run lint -w ranges
26 changes: 26 additions & 0 deletions .github/workflows/lint-static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Test Suite: Linter (static)"

on:
push:
pull_request:
paths:
- 'static/**'
branches:
- main
workflow_dispatch:

jobs:
tests:
if: github.repository == 'cutenode/nodevu'
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: current
- name: Run npm install -w static
run: npm install -w static
- name: Run npm run lint -w static
run: npm run lint -w static
26 changes: 26 additions & 0 deletions .github/workflows/lint-translate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Test Suite: Linter (translate)"

on:
push:
pull_request:
paths:
- 'translate/**'
branches:
- main
workflow_dispatch:

jobs:
tests:
if: github.repository == 'cutenode/nodevu'
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: current
- name: Run npm install -w translate
run: npm install -w translate
- name: Run npm run lint -w translate
run: npm run lint -w translate
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly-static-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ jobs:
node-version: [current, lts/*, lts/-1, lts/-2]
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Run npm install
- name: Install most recent npm
run: npm install -g npm
- name: Run npm install -w core
run: npm install -w core
- name: Run npm test
- name: Run npm test -w core
run: npm test -w core
30 changes: 30 additions & 0 deletions .github/workflows/tests-earliest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Test Suite: @nodevu/core"

on:
pull_request:
paths:
- 'earliest/**'
branches:
- main
workflow_dispatch:

jobs:
tests:
if: github.repository == 'cutenode/nodevu'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [current, lts/*, lts/-1, lts/-2]
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install most recent npm
run: npm install -g npm
- name: Run npm install -w earliest
run: npm install -w earliest
- name: Run npm test -w earliest
run: npm test -w earliest
30 changes: 30 additions & 0 deletions .github/workflows/tests-parsefiles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Test Suite: @nodevu/core"

on:
pull_request:
paths:
- 'parsefiles/**'
branches:
- main
workflow_dispatch:

jobs:
tests:
if: github.repository == 'cutenode/nodevu'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [current, lts/*, lts/-1, lts/-2]
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install most recent npm
run: npm install -g npm
- name: Run npm install -w parsefiles
run: npm install -w parsefiles
- name: Run npm test -w parsefiles
run: npm test -w parsefiles
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@ jobs:
node-version: [current, lts/*, lts/-1]
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install latest npm
run: npm i -g npm
- name: Run npm install at the monorepo level
run: npm install
- name: Run npm install at the package level
- name: Install most recent npm
run: npm install -g npm
- name: Run npm install -w ranges
run: npm install -w ranges
- name: Run npm test
- name: Run npm test -w ranges
run: npm test -w ranges
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
node-version: [current, lts/*, lts/-1, lts/-2]
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install latest npm
run: npm i -g npm
- name: Run npm install
- name: Install most recent npm
run: npm install -g npm
- name: Run npm install -w static
run: npm install -w static
- name: Run npm test
run: npm test -w static
- name: Run npm test -w static
run: npm test -w static
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@ jobs:
node-version: [current, lts/*, lts/-1]
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install latest npm
run: npm i -g npm
- name: Run npm install (project)
run: npm install
- name: Run npm install (package)
- name: Install most recent npm
run: npm install -g npm
- name: Run npm install -w translate
run: npm install -w translate
- name: Run npm test
- name: Run npm test -w translate
run: npm test -w translate

0 comments on commit 72f9dab

Please sign in to comment.