generated from QubitPi/react-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update language attribute path (#31)
- Loading branch information
Showing
6 changed files
with
40 additions
and
37 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -36,40 +36,8 @@ jobs: | |
with: | ||
access_token: ${{ github.token }} | ||
|
||
production-build: | ||
name: Test Production Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set node version to ${{ env.node_version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.node_version }} | ||
- name: Install dependencies | ||
run: npm install -g [email protected] && yarn | ||
- name: Load .env file | ||
run: mv .env.prod .env | ||
- name: Test production build | ||
run: yarn build | ||
env: | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
- name: Load CNAME | ||
run: cp CNAME build | ||
- name: Deploy to GitHub Pages | ||
if: github.ref == 'refs/heads/master' | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: build | ||
enable_jekyll: false | ||
user_name: ${{ env.USER }} | ||
user_email: ${{ env.EMAIL }} | ||
|
||
list-e2e-specs: | ||
name: Enumerate E2E tests and prepare to run them in parallel | ||
needs: [production-build] | ||
runs-on: ubuntu-latest | ||
outputs: | ||
paths: ${{ steps.list-e2e-specs.outputs.paths }} | ||
|
@@ -114,8 +82,6 @@ jobs: | |
npm install -g serve | ||
serve -s build -l 3000 & | ||
fi | ||
env: | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
- name: Wait until app is up and running | ||
run: wait-on http://127.0.0.1:3000 | ||
- name: Run E2E tests | ||
|
@@ -133,3 +99,37 @@ jobs: | |
path: | | ||
./cypress/videos | ||
./cypress/screenshots | ||
deploy: | ||
name: Deploy to GitHub Pages | ||
needs: [e2e-tests] | ||
if: github.ref == 'refs/heads/master' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set node version to ${{ env.node_version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.node_version }} | ||
- name: Install dependencies | ||
run: npm install -g [email protected] && yarn | ||
- name: Load .env file | ||
run: mv .env.prod .env | ||
- name: Test production build | ||
run: yarn build | ||
- name: Upload sourcemaps to sentry.io | ||
run: yarn sentry:sourcemaps | ||
env: | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
- name: Load CNAME | ||
run: cp CNAME build | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: build | ||
enable_jekyll: false | ||
user_name: ${{ env.USER }} | ||
user_email: ${{ env.EMAIL }} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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