Skip to content

Commit

Permalink
🧪 test(general): improve tests standardization
Browse files Browse the repository at this point in the history
  • Loading branch information
thrownullexception committed Feb 11, 2024
1 parent 45344bc commit 6be2c58
Show file tree
Hide file tree
Showing 10 changed files with 283 additions and 139 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 21
- run: npm install
# - name: Start Redis
# uses: supercharge/[email protected]
# - run: npm run verify
- name: Start Redis
uses: supercharge/[email protected]
- run: npm run verify
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
29 changes: 16 additions & 13 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,25 @@ name: CI

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: npm install
- name: Start Redis
uses: supercharge/[email protected]
- name: Run Verification
run: npm run verify
- name: Publish code coverage to CodeClimate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: 00fa2af1b50105f491c0e31d7841ecf1e7c495f1b7522ffa6b458d3db566de08
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 21
- name: Install modules
run: npm install
- name: Start Redis
uses: supercharge/[email protected]
- name: Run Verification
run: npm run verify
- name: Publish code coverage to CodeClimate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: 00fa2af1b50105f491c0e31d7841ecf1e7c495f1b7522ffa6b458d3db566de08
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hadmean",
"version": "0.20.11",
"name": "dashpress",
"version": "1.0.1",
"license": "GPL-3.0-or-later",
"scripts": {
"dev": "next dev",
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/_/api-handlers/roles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let PERMISSIONS = [
"CAN_MANAGE_USERS",
"CAN_RESET_PASSWORD",
"CAN_MANAGE_PERMISSIONS",
"CAN_MANAGE_ALL_ENTITIES",
"CAN_MANAGE_DASHBOARD",
"CAN_ACCESS_ENTITY:ENTITY-2--show",
"CAN_ACCESS_ENTITY:DISABLED-ENTITY-2--show",
];
Expand Down
Loading

0 comments on commit 6be2c58

Please sign in to comment.