-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2632 from nextcloud/fix/type-quting
- Loading branch information
Showing
12 changed files
with
21,216 additions
and
13,300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# This workflow is provided via the organization template repository | ||
# | ||
# https://github.com/nextcloud/.github | ||
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization | ||
|
||
name: Node | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- stable* | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
name: test | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Read package.json node and npm engines version | ||
uses: skjnldsv/[email protected] | ||
id: versions | ||
with: | ||
fallbackNode: '^12' | ||
fallbackNpm: '^6' | ||
|
||
- name: Set up node ${{ steps.versions.outputs.nodeVersion }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ steps.versions.outputs.nodeVersion }} | ||
|
||
- name: Set up npm ${{ steps.versions.outputs.npmVersion }} | ||
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}" | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Testing | ||
run: npm run test:coverage --if-present | ||
|
||
- name: Upload coverage | ||
uses: codecov/codecov-action@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const esModules = ['p-limit', 'yocto-queue'].join('|') | ||
|
||
module.exports = { | ||
preset: 'ts-jest', | ||
moduleFileExtensions: ['js', 'vue', 'ts'], | ||
collectCoverageFrom: [ | ||
'src/**/*.{js,vue}', | ||
'!**/node_modules/**', | ||
], | ||
setupFilesAfterEnv: [ | ||
'<rootDir>/tests/setup.js', | ||
], | ||
testEnvironment: 'jsdom', | ||
transform: { | ||
'^.+\\.ts$': 'ts-jest', | ||
'^.+\\.js$': 'babel-jest', | ||
'^.+\\.vue$': '@vue/vue2-jest', | ||
}, | ||
transformIgnorePatterns: [`/node_modules/(?!${esModules})`], | ||
} |
Oops, something went wrong.