diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index d98c4845..51137cf7 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -27,7 +27,8 @@ jobs:
- name: Install and Test
run: |
yarn install --frozen-lockfile
- yarn lint
+ yarn lint:check
+ yarn lint:format:check
yarn test
- name: Uploade CodeCov Report
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 7ba12c12..9940382c 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -22,10 +22,10 @@ jobs:
uses: actions/checkout@v3
- name: Initialize CodeQL
- uses: github/codeql-action/init@v1
+ uses: github/codeql-action/init@v2
- name: Autobuild
- uses: github/codeql-action/autobuild@v1
+ uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@v1
+ uses: github/codeql-action/analyze@v2
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 32e67c3b..daa2363e 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -13,7 +13,7 @@ jobs:
# Workflow dispatch event that pushes the current version to the release branch.
# From here the secondary production deployment workflow will trigger to build the dependencies.
- name: Deploy π
- uses: JamesIves/github-pages-deploy-action@v4.3.2
+ uses: JamesIves/github-pages-deploy-action@v4
with:
branch: releases/v4
folder: .
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index ce698619..59a44dd0 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -28,13 +28,12 @@ jobs:
uses: actions/checkout@v3
- name: Build and Deploy
- uses: JamesIves/github-pages-deploy-action@v4.3.2
+ uses: JamesIves/github-pages-deploy-action@v4
with:
git-config-name: Montezuma
git-config-email: montezuma@jamesiv.es
repository-name: MontezumaIves/lab
token: ${{ secrets.ACCESS_TOKEN }}
- branch: gh-pages
folder: integration
single-commit: true
clean: true
@@ -49,10 +48,9 @@ jobs:
uses: actions/checkout@v3
- name: Build and Deploy
- uses: JamesIves/github-pages-deploy-action@v4.3.2
+ uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.ACCESS_TOKEN }}
- branch: gh-pages
folder: integration
target-folder: cat/montezuma
git-config-name: Montezuma
@@ -63,7 +61,6 @@ jobs:
uses: dawidd6/action-delete-branch@v3.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- branches: gh-pages
# Deploys using checkout@v2 with a GITHUB_TOKEN.
integration-checkout-v2:
@@ -76,9 +73,8 @@ jobs:
persist-credentials: false
- name: Build and Deploy
- uses: JamesIves/github-pages-deploy-action@v4.3.2
+ uses: JamesIves/github-pages-deploy-action@v4
with:
- branch: gh-pages
folder: integration
target-folder: cat/montezuma2
silent: true
@@ -87,7 +83,6 @@ jobs:
uses: dawidd6/action-delete-branch@v3.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- branches: gh-pages
# Deploys using a container that requires you to install rsync.
integration-container:
@@ -108,9 +103,8 @@ jobs:
apt-get update && apt-get install -y rsync
- name: Build and Deploy
- uses: JamesIves/github-pages-deploy-action@v4.3.2
+ uses: JamesIves/github-pages-deploy-action@v4
with:
- branch: gh-pages
folder: integration
target-folder: cat/montezuma2
silent: true
@@ -132,10 +126,9 @@ jobs:
persist-credentials: false
- name: Build and Deploy
- uses: JamesIves/github-pages-deploy-action@v4.3.2
+ uses: JamesIves/github-pages-deploy-action@v4
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- branch: gh-pages
folder: integration
target-folder: cat/montezuma3
silent: true
@@ -162,10 +155,9 @@ jobs:
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
- name: Build and Deploy
- uses: JamesIves/github-pages-deploy-action@v4.3.2
+ uses: JamesIves/github-pages-deploy-action@v4
with:
ssh-key: true
- branch: gh-pages
folder: integration
target-folder: cat/montezuma4
silent: true
@@ -174,7 +166,6 @@ jobs:
uses: dawidd6/action-delete-branch@v3.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- branches: gh-pages
# Deploys using a custom env. (Includes subsequent commit)
integration-env:
@@ -191,19 +182,17 @@ jobs:
persist-credentials: false
- name: Build and Deploy
- uses: JamesIves/github-pages-deploy-action@v4.3.2
+ uses: JamesIves/github-pages-deploy-action@v4
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- branch: gh-pages
folder: integration
target-folder: cat/montezuma4
silent: true
- name: Build and Deploy
- uses: JamesIves/github-pages-deploy-action@v4.3.2
+ uses: JamesIves/github-pages-deploy-action@v4
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- branch: gh-pages
folder: integration
target-folder: cat/subsequent
silent: true
@@ -233,10 +222,9 @@ jobs:
persist-credentials: false
- name: Build and Deploy
- uses: JamesIves/github-pages-deploy-action@v4.3.2
+ uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.ACCESS_TOKEN }}
- branch: gh-pages
folder: integration
clean: true
silent: true
@@ -252,7 +240,7 @@ jobs:
persist-credentials: false
- name: Build and Deploy
- uses: JamesIves/github-pages-deploy-action@v4.3.2
+ uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.ACCESS_TOKEN }}
branch: integration-test-delete-prod
@@ -261,7 +249,7 @@ jobs:
silent: true
- name: Build and Deploy
- uses: JamesIves/github-pages-deploy-action@v4.3.2
+ uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.ACCESS_TOKEN }}
branch: integration-test-delete-prod
@@ -289,7 +277,7 @@ jobs:
run: echo $RANDOM > integration/1
- name: Build and Deploy
- uses: JamesIves/github-pages-deploy-action@v4.3.2
+ uses: JamesIves/github-pages-deploy-action@v4
with:
git-config-name: Montezuma
git-config-email: montezuma@jamesiv.es
@@ -311,7 +299,7 @@ jobs:
run: echo $RANDOM > integration/2
- name: Build and Deploy
- uses: JamesIves/github-pages-deploy-action@v4.3.2
+ uses: JamesIves/github-pages-deploy-action@v4
with:
git-config-name: Montezuma
git-config-email: montezuma@jamesiv.es
diff --git a/.github/workflows/sponsors.yml b/.github/workflows/sponsors.yml
index 1e3ad244..ae6f9566 100644
--- a/.github/workflows/sponsors.yml
+++ b/.github/workflows/sponsors.yml
@@ -12,24 +12,26 @@ jobs:
uses: actions/checkout@v3
- name: Generate Sponsors π
- uses: JamesIves/github-sponsors-readme-action@v1.0.8
+ uses: JamesIves/github-sponsors-readme-action@v1
with:
token: ${{ secrets.PAT }}
file: 'README.md'
template: ' '
maximum: 9999
+ organization: true
- name: Generate Sponsors π
- uses: JamesIves/github-sponsors-readme-action@v1.0.8
+ uses: JamesIves/github-sponsors-readme-action@v1
with:
token: ${{ secrets.PAT }}
file: 'README.md'
minimum: 10000
template: '
'
marker: 'premium'
+ organization: true
- name: Deploy to GitHub Pages
- uses: JamesIves/github-pages-deploy-action@v4.3.2
+ uses: JamesIves/github-pages-deploy-action@v4
with:
branch: dev
folder: '.'
diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 00000000..1b07c39e
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1,3 @@
+# Ignore artifacts:
+build
+coverage
\ No newline at end of file
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 756e1b52..c5f7e131 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -9,7 +9,7 @@ When contributing to this repository, please first discuss the change you wish t
2. Ensure your change passes all of the integration tests.
3. Make sure you update the README if you've made a change that requires documentation.
4. When making a pull request, highlight any areas that may cause a breaking change so the maintainer can update the version number accordingly on the GitHub marketplace and package registries.
-5. Make sure you've formatted and linted your code. You can do this by running `yarn format` and `yarn lint`.
+5. Make sure you've linted and formatted your code. You can do this by running `yarn lint` and `yarn lint:format`.
6. Fix or add any tests where applicable. You can run `yarn test` to run the suite. As this action is small in scope it's important that a high level of test coverage is maintained. All tests are written using [Jest](https://jestjs.io/).
7. As this package is written in [TypeScript](https://www.typescriptlang.org/) please ensure all typing is accurate and the action compiles correctly by running `yarn build`.
diff --git a/README.md b/README.md
index 2ffc6478..d5b19ce9 100644
--- a/README.md
+++ b/README.md
@@ -43,11 +43,11 @@