Skip to content

Commit

Permalink
Fix github actions
Browse files Browse the repository at this point in the history
Run nx test for all packages

Remove node 12 and 14

Regenerate package-lock.json

Try wildard with lcov

Test move files option

Try version 2 coveralls action

v2

Explicit files

Test coverage

List files

fds

List all

Ls root

Add cache config

Try longer pending state

Test with targetDefaults

Specify all lcovs

Specify with glob

Use newer actions

Revert to explicit

Use projectroot

Test trigger

Revert "Use projectroot"

This reverts commit 5e48a3f.

Revert
  • Loading branch information
mokkabonna committed Sep 19, 2023
1 parent 4f51db1 commit 58898bd
Show file tree
Hide file tree
Showing 7 changed files with 6,577 additions and 11,161 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [12, 14, 16]
node: [16, 18, 20]

steps:
- name: Clone repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: npm
Expand All @@ -35,7 +35,10 @@ jobs:
run: npm test

- name: Run Coveralls
uses: coverallsapp/github-action@1.1.3
if: matrix.node == 16
uses: coverallsapp/github-action@v2
if: matrix.node == 18
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
files: >
./packages/inquirer-autocomplete-prompt/coverage/lcov.info
./packages/inquirer-autocomplete-standalone/coverage/lcov.info
github-token: '${{ secrets.GITHUB_TOKEN }}'
11 changes: 6 additions & 5 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@
"default": {
"runner": "nx-cloud",
"options": {
"cacheableOperations": [
"lint",
"test",
"build"
],
"cacheableOperations": ["lint", "test", "build"],
"accessToken": "NThiM2Y0ZDYtOWVkNy00NWJiLTgzMDktZjRjYjhkYTUzZTI5fHJlYWQtd3JpdGU="
}
}
},
"affected": {
"defaultBase": "main"
},
"targetDefaults": {
"test": {
"outputs": ["{projectRoot}/coverage"]
}
}
}
Loading

0 comments on commit 58898bd

Please sign in to comment.