Skip to content

Commit

Permalink
Merge pull request #456 from nextcloud/feat/add-test
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv committed Feb 3, 2023
2 parents 3a3d34c + 698c578 commit ead057b
Show file tree
Hide file tree
Showing 9 changed files with 11,411 additions and 4,276 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/node.yml
@@ -0,0 +1,50 @@
# 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*

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

name: node
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@v2
id: versions
with:
fallbackNode: '^16'
fallbackNpm: '^8'

- 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: Run tests
run: |
npm test
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -121,7 +121,7 @@ module.exports = {
},
overrides: [
{
files: ['**/*.ts'],
files: ['**/*.ts', '**/*.tsx'],
extends: [
'@vue/eslint-config-typescript/recommended',
'plugin:import/typescript',
Expand All @@ -148,7 +148,7 @@ module.exports = {
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.js', '.ts', '.vue'],
extensions: ['.(m|c)?js', '.ts', '.tsx', '.vue'],
},
},
},
Expand Down

0 comments on commit ead057b

Please sign in to comment.