-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update basic references to simple
- Loading branch information
Showing
2 changed files
with
5 additions
and
197 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 |
---|---|---|
|
@@ -141,7 +141,7 @@ jobs: | |
run: | | ||
echo "${{ secrets.TEST_ENV_FILE }}" > .env.test | ||
echo NEXT_PUBLIC_CI=true >> .env.test | ||
echo NEXT_PUBLIC_CI=true >> ./examples/basic/.env.test | ||
echo NEXT_PUBLIC_CI=true >> ./examples/simple/.env.test | ||
- name: Build everything | ||
run: pnpm build:e2e | ||
|
@@ -166,7 +166,7 @@ jobs: | |
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test-results | ||
path: examples/basic/test-results | ||
path: examples/simple/test-results | ||
continue-on-error: true | ||
|
||
- name: Report "Run examples e2e tests" conclusion | ||
|
@@ -176,196 +176,4 @@ jobs: | |
token: ${{ secrets.GITHUB_TOKEN }} | ||
id: examples-e2e-tests | ||
conclusion: ${{ steps.examples-e2e-tests.outcome }} | ||
fail-on-error: true | ||
|
||
# commit-latest-examples: | ||
# name: Commit latest examples | ||
# needs: generate-examples | ||
# runs-on: ubuntu-latest | ||
# outputs: | ||
# commit_sha: ${{ steps.commit_changes.outputs.commit_long_sha }} | ||
# steps: | ||
# - name: Checkout Repo | ||
# uses: actions/checkout@v3 | ||
# | ||
# - name: Install rimraf | ||
# run: npm i -g [email protected] | ||
# | ||
# - name: Clear all previous examples versions | ||
# run: mkdir -p examples && rimraf ./examples/* | ||
# | ||
# - uses: actions/download-artifact@v3 | ||
# with: | ||
# path: temp-artifact-workspace | ||
# | ||
# | ||
# | ||
# - name: Display structure of downloaded files | ||
# run: ls -R | ||
|
||
|
||
# - name: Commit changes | ||
# id: commit_changes | ||
# uses: EndBug/add-and-commit@v9 | ||
# with: | ||
# message: 'chore: generated latest ${{ matrix.example }} example' | ||
# committer_name: GitHub Actions | ||
# committer_email: 41898282+github-actions[bot]@users.noreply.github.com | ||
# default_author: github_actions | ||
# add: '*' | ||
|
||
# build: | ||
# name: Create latest examples | ||
# runs-on: ubuntu-latest | ||
# outputs: | ||
# commit_sha: ${{ steps.commit_changes.outputs.commit_long_sha }} | ||
# steps: | ||
# - name: Checkout Repo | ||
# uses: actions/checkout@v3 | ||
# | ||
# - name: Setup Node.js 16.x | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 16.x | ||
# | ||
# - name: Install Dependencies | ||
# run: yarn | ||
# | ||
# - name: Make .env.examples file | ||
# run: | | ||
# echo "${{ secrets.EXAMPLES_ENV_FILE }}" > .env.examples | ||
# | ||
# - name: Build Latest CLI and generate examples | ||
# run: yarn examples | ||
# | ||
# - name: Commit changes | ||
# id: commit_changes | ||
# uses: EndBug/add-and-commit@v9 | ||
# with: | ||
# message: 'chore: generate latest examples' | ||
# committer_name: GitHub Actions | ||
# committer_email: 41898282+github-actions[bot]@users.noreply.github.com | ||
# default_author: github_actions | ||
# add: '*' | ||
# | ||
# - name: Display structure of directory pre zip | ||
# run: ls -Ra | ||
# | ||
# - name: Zip build artifact | ||
# run: zip app-build.zip ./.next -r | ||
# | ||
# - name: Display structure of directory post zip | ||
# run: ls -Ra | ||
# | ||
# - name: Upload test results | ||
# if: always() | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: app-build | ||
# path: ./app-build.zip | ||
# | ||
# run-unit-basic: | ||
# name: Run unit tests for examples | ||
# needs: build | ||
# defaults: | ||
# run: | ||
# working-directory: examples/basic | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# | ||
# - uses: actions/download-artifact@v3 | ||
# with: | ||
# name: app-build | ||
# | ||
# - name: Display structure of downloaded files pre unzip | ||
# run: ls -R | ||
# | ||
# - name: unzip build artifact | ||
# run: unzip app-build.zip | ||
# | ||
# - name: Display structure of downloaded files post unzip | ||
# run: ls -R | ||
# | ||
# - name: Run unit tests for latest examples | ||
# run: yarn test:coverage | ||
# - name: Upload test results | ||
# if: always() | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: coverage | ||
# path: examples/basic/coverage | ||
# | ||
# - name: "Create a check run" | ||
# if: ${{ needs.build.outputs.commit_sha }} | ||
# uses: actions/github-script@v6 | ||
# env: | ||
# parameter_url: '${{ github.event.workflow_run.html_url }}' | ||
# with: | ||
# debug: ${{ secrets.ACTIONS_STEP_DEBUG || false }} | ||
# script: | | ||
# await github.rest.checks.create({ | ||
# owner: context.repo.owner, | ||
# repo: context.repo.repo, | ||
# head_sha: "${{ needs.build.outputs.commit_sha }}", | ||
# name: "Unit Tests", | ||
# status: "completed", | ||
# conclusion: "success", | ||
# output: { | ||
# title: "Unit Tests", | ||
# summary: "my *check* summary", | ||
# text: "my text", | ||
# }, | ||
# }); | ||
# | ||
# run-e2e-basic: | ||
# name: Run e2e tests for examples | ||
# needs: build | ||
# defaults: | ||
# run: | ||
# working-directory: examples/basic | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout files | ||
# uses: Bhacaz/checkout-files@v2 | ||
# with: | ||
# files: examples/basic | ||
# branch: ${{ needs.build.outputs.commit_sha || github.sha }} | ||
# | ||
# - name: Make .env.test file | ||
# run: | | ||
# echo "${{ secrets.TEST_ENV_FILE }}" > .env.test | ||
# | ||
# - name: Install Dependencies | ||
# run: yarn --ignore-scripts | ||
# | ||
# - name: Run e2e tests for latest examples | ||
# run: yarn test:ci:e2e | ||
# - name: Upload test results | ||
# if: always() | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: test-results | ||
# path: examples/basic/test-results | ||
# | ||
# - name: "Create a check run" | ||
# if: ${{ needs.build.outputs.commit_sha }} | ||
# uses: actions/github-script@v6 | ||
# env: | ||
# parameter_url: '${{ github.event.workflow_run.html_url }}' | ||
# with: | ||
# debug: ${{ secrets.ACTIONS_STEP_DEBUG || false }} | ||
# script: | | ||
# await github.rest.checks.create({ | ||
# owner: context.repo.owner, | ||
# repo: context.repo.repo, | ||
# head_sha: "${{ needs.build.outputs.commit_sha }}", | ||
# name: "Generate Examples", | ||
# status: "completed", | ||
# conclusion: "success", | ||
# output: { | ||
# title: "Generate Examples", | ||
# summary: "my *check* summary", | ||
# text: "my text", | ||
# }, | ||
# }); | ||
fail-on-error: 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