-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fold CI actions into GitHub Actions, deploy SB to GH Pages
- Loading branch information
1 parent
956f1c5
commit 335911e
Showing
17 changed files
with
822 additions
and
405 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Run linters and Cypress | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- "gh-pages" | ||
pull_request: | ||
types: [closed] | ||
branches: | ||
- main | ||
|
||
jobs: | ||
run-linters: | ||
name: Run linters | ||
runs-on: ubuntu-latest | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
- name: Install dependencies | ||
run: yarn | ||
- name: Lint | ||
uses: wearerequired/lint-action@v2 | ||
with: | ||
eslint: true | ||
eslint_dir: src | ||
eslint_extensions: js,ts,jsx,tsx | ||
eslint_auto_fix: false | ||
prettier: true | ||
prettier_dir: src | ||
prettier_extensions: js,ts,jsx,tsx | ||
prettier_auto_fix: false | ||
# Cypress disabled until tests rewritten to use new SB paths | ||
# - name: Cypress | ||
# uses: cypress-io/github-action@v6 | ||
# with: | ||
# start: yarn start |
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 |
---|---|---|
|
@@ -30,3 +30,9 @@ jobs: | |
git config --global user.name "Github Action" | ||
./scripts/release.sh "${GITHUB_REF/refs\/tags\//}" | ||
shell: bash | ||
- uses: bitovi/[email protected] | ||
with: | ||
install_command: yarn install | ||
build_command: yarn build-storybook | ||
path: preview | ||
checkout: false |
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,6 +1,5 @@ | ||
vendor | ||
./core | ||
./reset | ||
./preview/public | ||
./preview/tmp | ||
preview | ||
node_modules |
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,3 @@ | ||
{ | ||
"port": 5000 | ||
} |
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
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
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 |
---|---|---|
|
@@ -2,17 +2,10 @@ | |
# yarn lockfile v1 | ||
|
||
|
||
<<<<<<< HEAD | ||
"@ably/[email protected]": | ||
version "13.2.2-dev.78815ed" | ||
resolved "https://registry.yarnpkg.com/@ably/ui/-/ui-13.2.2-dev.78815ed.tgz#3b0329452a7d294aab064ee2a196ce6cec7fad43" | ||
integrity sha512-JLX8CWo06ZuxfA1m1au0KsNjZ7IMCRtvTMQyljshZqVGJpVjo09Mzj22PheUpcsWlhYZkMYYuHupDr/8qI+NjQ== | ||
======= | ||
"@ably/[email protected]": | ||
version "13.1.0-dev.49a8f15" | ||
resolved "https://registry.yarnpkg.com/@ably/ui/-/ui-13.1.0-dev.49a8f15.tgz#3d9f1dc2040aad7619bb8be999294568e90bb73b" | ||
integrity sha512-O1+X7Wf1zvQTlSE2nAAgG5JEIUc1BR1vbxd+lGFoA9ZDxiRllJqC1gB2LMNTiTuWUIqjFMMMvJ0RW3t0WS9wNg== | ||
>>>>>>> 8f4175c (Publish v13.1.0-dev.49a8f15 and update preview app) | ||
dependencies: | ||
"@mrtkrcm/cypress-plugin-snapshots" "https://github.com/mrtkrcm/cypress-plugin-snapshots#v1.13.0" | ||
addsearch-js-client "^0.7.0" | ||
|
Oops, something went wrong.