Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tanakaworld committed Apr 8, 2024
1 parent 79a7523 commit 6f30a92
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 81 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/before-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,43 +34,3 @@ jobs:
name: dist
path: dist
if-no-files-found: error

test-e2e:
name: E2E Test

needs: lint-test-build

runs-on: ubuntu-latest
strategy:
matrix:
browser: [chrome, firefox, edge]

steps:
- uses: actions/checkout@v2
- name: Read .node-version
id: node-version
uses: juliangruber/read-file-action@v1
with:
path: ./.node-version
- name: Use Node.js ${{ steps.node-version.outputs.content }}
uses: actions/setup-node@v2
with:
node-version: ${{ steps.node-version.outputs.content }}
cache: 'npm'
- name: Download Artifact
uses: actions/download-artifact@master
with:
name: dist
path: dist
- name: E2E by Cypress
uses: cypress-io/github-action@v2
with:
browser: ${{ matrix.browser }}
command: npm run e2e:ci
- uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-${{ matrix.browser }}
path: |
cypress/videos
cypress/screenshots
42 changes: 1 addition & 41 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,50 +35,10 @@ jobs:
path: dist
if-no-files-found: error

test-e2e:
name: E2E Test

needs: lint-test-build

runs-on: ubuntu-latest
strategy:
matrix:
browser: [chrome, firefox, edge]

steps:
- uses: actions/checkout@v2
- name: Read .node-version
id: node-version
uses: juliangruber/read-file-action@v1
with:
path: ./.node-version
- name: Use Node.js ${{ steps.node-version.outputs.content }}
uses: actions/setup-node@v2
with:
node-version: ${{ steps.node-version.outputs.content }}
cache: 'npm'
- name: Download Artifact
uses: actions/download-artifact@master
with:
name: dist
path: dist
- name: E2E by Cypress
uses: cypress-io/github-action@v2
with:
browser: ${{ matrix.browser }}
command: npm run e2e:ci
- uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-${{ matrix.browser }}
path: |
cypress/videos
cypress/screenshots
deploy:
name: Deploy

needs: test-e2e
needs: lint-test-build

runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit 6f30a92

Please sign in to comment.