Skip to content

Commit

Permalink
Changed cypress action to use description
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHorwitz committed May 29, 2024
1 parent ddee1a8 commit 769e349
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
21 changes: 21 additions & 0 deletions .github/run-docker-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
workflow_dispatch:
cyp:
pull_request:
branches:
- main
- release
types:
- opened
- reopened

jobs:
cypress:
runs-on: ubuntu-latest
name: Cypress Test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Hello world action step
uses: ./.github/workflows/cypress-test-docker/cypress-run.yaml
id: hello
2 changes: 1 addition & 1 deletion .github/workflows/cypress-test-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FROM cypress/included

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY ../../../frontend /
COPY /frontend /
WORKDIR /frontend

RUN yarn install
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/cypress-test-docker/cypress-run.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
# action.yml
name: 'Cypress Docker test'
description: 'Runs cypress in a docker container'
on:
workflow_dispatch:
pull_request:
branches:
- main
- release
types:
- opened
- reopened
runs:
using: 'docker'
image: 'Dockerfile'

0 comments on commit 769e349

Please sign in to comment.