Skip to content

Commit

Permalink
Merge pull request #89 from bruceharrison1984/fix-unit-test-2
Browse files Browse the repository at this point in the history
try to lock node version so we can clear unit tests
  • Loading branch information
bruceharrison1984 authored Jul 5, 2023
2 parents ad5d591 + 524e5cf commit 67d47d9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 138 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Pull Request
name: CI

on:
push:
branches:
- '*'
pull_request:
branches:
- main
workflow_dispatch:

jobs:
lint-pr:
Expand Down Expand Up @@ -53,11 +57,13 @@ jobs:
- name: NPM Install
run: npm ci
- uses: ArtiomTr/[email protected]
if: github.event_name == 'pull_request'
id: coverage
with:
test-script: npm run test:ci
output: report-markdown
working-directory: ./packages/Schedulely
- uses: marocchino/sticky-pull-request-comment@v2
if: steps.coverage.outcome == 'success'
with:
message: ${{ steps.coverage.outputs.report }}
73 changes: 0 additions & 73 deletions .github/workflows/codeql.yml

This file was deleted.

60 changes: 0 additions & 60 deletions .github/workflows/develop.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
id: getReleaseVersion
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/v}

- name: Use Node.js 16.x
- name: Use Node.js 16.10.0
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: '16.10.0'
registry-url: https://registry.npmjs.org/

- name: Update NPM
Expand Down
2 changes: 1 addition & 1 deletion packages/Schedulely/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"lint": "eslint . --ext .ts --ext .tsx",
"prettier": "prettier --check './src/**.(ts|tsx|js|scss)'",
"test": "jest",
"test:ci": "npx jest --ci --json --coverage --testLocationInResults --outputFile=report.json --maxWorkers 50%",
"test:ci": "npx jest --ci --json --coverage --testLocationInResults --outputFile=report.json --maxWorkers 1",
"dev": "ladle serve --stories=__stories__/**.stories.tsx",
"build-ladle": "ladle build"
},
Expand Down
1 change: 0 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
]
},
"rollup": {
"dependsOn": ["test"],
"inputs": ["src/**", "rollup.config.js"],
"outputs": ["dist/**"]
},
Expand Down

0 comments on commit 67d47d9

Please sign in to comment.