Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: 💡 update to latest test-application version #308

Merged
merged 7 commits into from
Jul 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
ignore:
- dependency-name: eslint
versions:
- 7.18.0
- 7.19.0
- 7.20.0
- 7.21.0
- 7.22.0
- 7.23.0
- 7.24.0
- dependency-name: y18n
versions:
- 4.0.1
- 4.0.2
- dependency-name: "@typescript-eslint/eslint-plugin"
versions:
- 4.14.1
- 4.14.2
- 4.15.0
- 4.15.1
- 4.15.2
- 4.16.1
- 4.17.0
- 4.18.0
- 4.19.0
- 4.20.0
- 4.21.0
- dependency-name: "@typescript-eslint/parser"
versions:
- 4.14.1
- 4.14.2
- 4.15.0
- 4.15.1
- 4.15.2
- 4.16.1
- 4.17.0
- 4.18.0
- 4.19.0
- 4.20.0
- 4.21.0
- dependency-name: "@types/fs-extra"
versions:
- 9.0.10
- 9.0.6
- 9.0.7
- 9.0.8
- 9.0.9
- dependency-name: "@types/jest"
versions:
- 26.0.20
- 26.0.21
- 26.0.22
- dependency-name: husky
versions:
- 4.3.8
- 5.0.9
- 5.1.0
- 5.1.1
- 5.1.2
- 5.1.3
- 5.2.0
- dependency-name: typescript
versions:
- 4.1.3
- 4.1.4
- 4.1.5
- 4.2.2
- 4.2.3
- dependency-name: node-notifier
versions:
- 8.0.1
- dependency-name: lint-staged
versions:
- 10.5.3
37 changes: 22 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,37 @@ jobs:
strategy:
fail-fast: true
matrix:
node: [10, 12, 13]
os: [ubuntu-latest, macOS-latest, windows-latest]
node_version:
- 12
- 14
- 16
os:
- ubuntu-latest
- macOS-latest
- windows-latest
architecture:
- x64

steps:
- uses: actions/checkout@v2
- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v1
- name: Setup node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
node-version: ${{ matrix.node_version }}
architecture: ${{ matrix.architecture }}
registry-url: https://registry.npmjs.org
- name: Cache npm
uses: actions/cache@v1
- name: Cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: install
run: npm ci
run: yarn install --frozen-lockfile
- name: lint
run: npm run lint
run: yarn lint
- name: build
run: npm run compile
run: yarn compile
- name: test
run: npm test
run: yarn test
env:
FORCE_EXIT: true
18 changes: 13 additions & 5 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,30 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org
- name: install
run: npm ci
run: yarn install --frozen-lockfile
- name: build
run: npm run compile
run: yarn compile
- name: integration test wdio-v5
run: npm run itest5
run: yarn itest5
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
FORCE_EXIT: true
- name: integration test wdio-v6
run: npm run itest6
run: yarn itest6
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
FORCE_EXIT: true
- name: integration test wdio-v7
run: yarn itest7
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org
- name: install
run: npm ci
run: yarn install --frozen-lockfile
- name: test
run: npm test
run: yarn test
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org
- name: install
run: npm ci
run: yarn install --frozen-lockfile
- name: build
run: npm run compile
run: yarn compile
- name: publish
run: npx semantic-release
run: yarn semantic-release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ typings/

# next.js build output
.next

# generated
dist
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

node node_modules/.bin/commitlint -e
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

node node_modules/.bin/lint-staged
8 changes: 6 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ src
scripts

# test
**/*.spec.*
test
**/*.spec.*
jest.config.js

# configs
tsconfig.json
Expand All @@ -21,8 +22,11 @@ sonar-project.properties
*.iml

# ci
.circleci
.github

# integration tests
itest
coverage

# other
docs
Loading