-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: upgrade dependencies, tests, and workflows
- Loading branch information
1 parent
22d3fb8
commit cb7495c
Showing
279 changed files
with
95,520 additions
and
38,442 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1,65 @@ | ||
test/cases | ||
dist | ||
build | ||
.build | ||
logfile | ||
.nyc_output | ||
coverage | ||
node_modules | ||
test/fixtures | ||
|
||
.git/* | ||
.DS_Store | ||
.npmrc | ||
.yarnclean | ||
.eslintignore | ||
.prettierignore | ||
.upignore | ||
.npmignore | ||
.gitignore | ||
.dockerignore | ||
.yarnrc | ||
.haxt | ||
.flowconfig | ||
.firebaserc | ||
.graphqlconfig | ||
.editorconfig | ||
.next | ||
_next | ||
|
||
license | ||
yarn.lock | ||
Dockerfile.* | ||
Dockerfile | ||
|
||
_env*ac | ||
.env.* | ||
*.env | ||
*.ico | ||
*.html | ||
*.xml | ||
*.log | ||
*.svg | ||
*.map | ||
*.png | ||
*.snap | ||
*.txt | ||
*.sketch | ||
*.ttf | ||
*.eot | ||
*.ttf | ||
*.woff | ||
*.woff2 | ||
*.out | ||
*.dms | ||
*.sh | ||
*.tar.gz | ||
*.pem | ||
*.jpg | ||
*.gif | ||
*.graphcool | ||
*.re | ||
*.wasm | ||
*.yml | ||
*.toml | ||
*.jar | ||
*.zip |
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,16 @@ | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
|
||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
schedule: | ||
interval: 'daily' | ||
commit-message: | ||
prefix: 'chore' | ||
include: 'scope' | ||
versioning-strategy: increase-if-necessary |
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,51 @@ | ||
name: Continuous Updates | ||
|
||
on: | ||
push: | ||
branches: [ dependabot/npm_and_yarn/** ] | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
branches: [ dependabot/npm_and_yarn/** ] | ||
|
||
jobs: | ||
update-manifests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: technote-space/auto-cancel-redundant-job@v1 | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 20 | ||
persist-credentials: false | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v2.1.1 | ||
with: | ||
node-version: '14.x' | ||
- name: Config Git | ||
run: | | ||
git config --global user.name '${{ github.event.commits[0].author.name }}' | ||
git config --global user.email '${{ github.event.commits[0].author.email }}' | ||
- name: Fix yarn.lock | ||
run: | | ||
# get current branch | ||
echo ::set-env name=GITHUB_REF_SLUG::"$(git branch --show-current)" | ||
# revert changes to yarn.lock | ||
git checkout ${{ github.sha }}^ -- yarn.lock | ||
# IF only yarn.lock changed, update package.json too | ||
git diff --name-only HEAD^ HEAD | grep -q 'package.json' || yarn up `git log -1 --pretty=%s | awk '{ print $3 }'` | ||
# regardless, run yarn to update yarn.lock | ||
yarn | ||
# stage package.json and yarn.lock | ||
git add yarn.lock package.json | ||
# commit changes | ||
git commit --amend --no-edit --allow-empty -n | ||
env: | ||
YARN_CHECKSUM_BEHAVIOR: update | ||
YARN_ENABLE_SCRIPTS: 0 | ||
- name: Test | ||
run: yarn test | ||
- name: Push changes | ||
uses: ad-m/github-push-action@v0.6.0 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ env.GITHUB_REF_SLUG }} | ||
force: true |
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,133 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
############################################################################### | ||
# SETUP # | ||
############################################################################### | ||
setup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v2.1.1 | ||
with: | ||
node-version: '14.x' | ||
- name: Setup Cache | ||
uses: actions/cache@v2.1.1 | ||
with: | ||
path: .yarn | ||
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} | ||
- name: Install dependencies | ||
run: yarn install --immutable | ||
env: | ||
YARN_CHECKSUM_BEHAVIOR: update | ||
|
||
############################################################################### | ||
# COMMITLINT # | ||
############################################################################### | ||
commitlint: | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Commit Lint | ||
uses: wagoid/commitlint-github-action@v2.0.3 | ||
with: | ||
failOnWarnings: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
############################################################################### | ||
# ESLINT # | ||
############################################################################### | ||
eslint: | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v2.1.1 | ||
with: | ||
node-version: '14.x' | ||
- name: Setup Cache | ||
uses: actions/cache@v2.1.1 | ||
with: | ||
path: .yarn | ||
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} | ||
- name: Install dependencies | ||
run: yarn install --immutable | ||
env: | ||
YARN_CHECKSUM_BEHAVIOR: update | ||
- name: ESLint | ||
run: yarn run eslint | ||
|
||
############################################################################### | ||
# TEST # | ||
############################################################################### | ||
test: | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v2.1.1 | ||
with: | ||
node-version: '14.x' | ||
- name: Setup Cache | ||
uses: actions/cache@v2.1.1 | ||
with: | ||
path: .yarn | ||
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} | ||
- name: Install dependencies | ||
run: yarn install --immutable | ||
env: | ||
YARN_CHECKSUM_BEHAVIOR: update | ||
- name: Test | ||
run: yarn test | ||
|
||
############################################################################### | ||
# RELEASE # | ||
############################################################################### | ||
release: | ||
needs: [eslint, commitlint, test] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Cache | ||
uses: actions/cache@v2.1.1 | ||
with: | ||
path: .yarn | ||
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} | ||
- name: Install dependencies | ||
run: yarn install --immutable | ||
env: | ||
YARN_CHECKSUM_BEHAVIOR: update | ||
- name: Generate release token | ||
id: release_token | ||
uses: tibdex/github-app-token@v1.1 | ||
with: | ||
app_id: ${{ secrets.RELEASE_APP_ID }} | ||
private_key: ${{ secrets.RELEASE_PRIVATE_KEY }} | ||
- name: Get branch | ||
uses: rlespinasse/github-slug-action@2.1.0 | ||
- name: Release | ||
uses: ridedott/release-me-action@master | ||
if: ${{ env.GITHUB_REF_SLUG == 'master' }} | ||
with: | ||
node-module: true | ||
release-rules: '[{"scope":"deps-dev","release":false},{"scope":"no-release","release":false},{"release":"patch","type":"build"},{"release":"patch","type":"chore"},{"release":"patch","type":"ci"},{"release":"patch","type":"docs"},{"release":"patch","type":"improvement"},{"release":"patch","type":"refactor"},{"release":"minor","type":"feat"},{"release":false,"subject":"*\\[skip release\\]*"}]' | ||
env: | ||
GITHUB_TOKEN: ${{ steps.release_token.outputs.token }} |
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,26 @@ | ||
name: Continuous Delivery | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v2.1.1 | ||
with: | ||
node-version: '13.x' | ||
registry-url: https://registry.npmjs.com/ | ||
scope: '@sergioramos' | ||
- name: Install dependencies | ||
run: yarn install --immutable | ||
env: | ||
YARN_CHECKSUM_BEHAVIOR: update | ||
- name: Publish | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} |
Oops, something went wrong.