diff --git a/.github/workflows/ci-code-style.yml b/.github/workflows/ci-code-style.yml deleted file mode 100644 index 32ecb44..0000000 --- a/.github/workflows/ci-code-style.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Code Style - -on: - - push - - fork - - pull_request - -jobs: - code-style: - runs-on: ubuntu-latest - name: 'Check code style for Node.js v${{ matrix.node-version }}' - strategy: - fail-fast: false - matrix: - node-version: ['19'] - steps: - - uses: actions/setup-node@v3 - with: - node-version: '${{ matrix.node-version }}' - - uses: actions/checkout@v3 - - name: 'Cache node_modules' - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.os }}-node-v${{ matrix.node-version }}-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ runner.os }}-node-v${{ matrix.node-version }}- - - name: Install dependencies - run: yarn install --dev - - name: Run syntax linter - run: yarn run cs diff --git a/.github/workflows/ci-markdown-lint.yml b/.github/workflows/ci-markdown-lint.yml deleted file mode 100755 index 63d551b..0000000 --- a/.github/workflows/ci-markdown-lint.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Markdown lint - -on: - - push - - fork - - pull_request - -jobs: - yml-lint: - runs-on: ubuntu-latest - name: 'Markdown lint' - steps: - - uses: actions/checkout@v3 - - run: docker pull tmknom/markdownlint - - run: docker run --rm -v $(pwd):/work tmknom/markdownlint '**/*.md' --ignore node_modules --ignore CHANGELOG.md - shell: bash diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml new file mode 100644 index 0000000..b32f5ad --- /dev/null +++ b/.github/workflows/ci-test.yml @@ -0,0 +1,96 @@ +name: Test + +on: + - push + +jobs: + + yml-lint: + runs-on: ubuntu-latest + name: 'YML lint' + timeout-minutes: 3 + steps: + - uses: actions/checkout@v4 + - run: docker pull cytopia/yamllint + - run: docker run --rm -t -v $(pwd):/data cytopia/yamllint --config-file=tests/.yamllint . + + markdown-lint: + runs-on: ubuntu-latest + name: 'Markdown lint' + timeout-minutes: 3 + steps: + - uses: actions/checkout@v4 + - run: docker pull tmknom/markdownlint + - run: docker run --rm -v $(pwd):/work tmknom/markdownlint '**/*.md' --config tests/.markdownlintrc --ignore node_modules --ignore CHANGELOG.md --ignore var --ignore tmp + + code-style: + runs-on: ubuntu-latest + name: 'Check code style for Node.js v${{ matrix.node-version }}' + strategy: + fail-fast: false + matrix: + node-version: ['20', '21'] + steps: + - uses: actions/setup-node@v3 + with: + node-version: '${{ matrix.node-version }}' + - uses: actions/checkout@v4 + - name: 'Cache node_modules' + uses: actions/cache@v4 + with: + path: ~/.npm + key: ${{ runner.os }}-node-v${{ matrix.node-version }}-${{ hashFiles('**/package.json') }} + restore-keys: | + ${{ runner.os }}-node-v${{ matrix.node-version }}- + - name: Install dependencies + run: yarn install --dev + - name: Run syntax linter + run: yarn cs + + test-unit: + runs-on: ubuntu-latest + name: 'Check unit tests for Node.js v${{ matrix.node-version }}' + strategy: + fail-fast: false + matrix: + node-version: ['20', '21'] + steps: + - uses: actions/setup-node@v3 + with: + node-version: '${{ matrix.node-version }}' + - uses: actions/checkout@v4 + - name: 'Cache node_modules' + uses: actions/cache@v4 + with: + path: ~/.npm + key: ${{ runner.os }}-node-v${{ matrix.node-version }}-${{ hashFiles('**/package.json') }} + restore-keys: | + ${{ runner.os }}-node-v${{ matrix.node-version }}- + - name: Install dependencies + run: yarn install --dev + - name: Run syntax linter + run: yarn test:unit + + test-feature: + runs-on: ubuntu-latest + name: 'Check feature tests for Node.js v${{ matrix.node-version }}' + strategy: + fail-fast: false + matrix: + node-version: ['20', '21'] + steps: + - uses: actions/setup-node@v3 + with: + node-version: '${{ matrix.node-version }}' + - uses: actions/checkout@v4 + - name: 'Cache node_modules' + uses: actions/cache@v4 + with: + path: ~/.npm + key: ${{ runner.os }}-node-v${{ matrix.node-version }}-${{ hashFiles('**/package.json') }} + restore-keys: | + ${{ runner.os }}-node-v${{ matrix.node-version }}- + - name: Install dependencies + run: yarn install --dev + - name: Run syntax linter + run: yarn test:feature diff --git a/.github/workflows/ci-unit-test.yml b/.github/workflows/ci-unit-test.yml deleted file mode 100644 index 277432d..0000000 --- a/.github/workflows/ci-unit-test.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Unit Test - -on: - - push - - fork - - pull_request - -jobs: - unit-test: - runs-on: ubuntu-latest - name: 'Running unit tests for Node.js v${{ matrix.node-version }}' - strategy: - fail-fast: false - matrix: - node-version: ['19'] - steps: - - uses: actions/setup-node@v3 - with: - node-version: '${{ matrix.node-version }}' - - uses: actions/checkout@v3 - - name: 'Cache node_modules' - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.os }}-node-v${{ matrix.node-version }}-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ runner.os }}-node-v${{ matrix.node-version }}- - - name: Install dependencies - run: yarn install --dev - - name: Run unit tests - run: yarn run test:unit diff --git a/.github/workflows/ci-yml-lint.yml b/.github/workflows/ci-yml-lint.yml deleted file mode 100755 index 5f6eadd..0000000 --- a/.github/workflows/ci-yml-lint.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: YML lint - -on: - - push - - fork - - pull_request - -jobs: - yml-lint: - runs-on: ubuntu-latest - name: 'YML lint' - steps: - - uses: actions/checkout@v3 - - run: docker pull cytopia/yamllint - - run: docker run --rm -t -v $(pwd):/data cytopia/yamllint . - shell: bash diff --git a/TODO.md b/TODO.md deleted file mode 100644 index 16fa63e..0000000 --- a/TODO.md +++ /dev/null @@ -1,7 +0,0 @@ -# Todo - -- Check build process -- Build locally -- Integrate library locally -- Fix build process, if required -- Build single file? diff --git a/package.json b/package.json index 8fe62c5..918f995 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.0.38", "type": "module", "engines": { - "node": ">= 19.0" + "node": ">= 20.0" }, "main": "dist/EmberNexus.js", "types": "dist/EmberNexus.d.ts", diff --git a/.markdownlintrc b/test/.markdownlintrc similarity index 100% rename from .markdownlintrc rename to test/.markdownlintrc diff --git a/.yamllint b/test/.yamllint similarity index 100% rename from .yamllint rename to test/.yamllint