Skip to content

Commit

Permalink
Reconfigure Cypress CI INSM-TUM/SimuBridge#26 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonBein authored Aug 9, 2023
1 parent 506f0f2 commit 1c9f0e9
Show file tree
Hide file tree
Showing 21 changed files with 134 additions and 523 deletions.
43 changes: 6 additions & 37 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,55 +14,24 @@ jobs:
node-version: [15.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Run API in background
working-directory: backend
run: |
npm install
npm start &
env:
PORT: 8000

node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Checkout
uses: actions/checkout@v2
- name: Cypress install
working-directory: frontend
- name: Node install
run: npm install --legacy-peer-deps
- name: Cypress run
uses: cypress-io/github-action@v4
uses: cypress-io/github-action@v5
with:
working-directory: frontend
install: false
build: npm run build
start: npm start
wait-on: "http://localhost:3000"
wait-on-timeout: 120

build-images:
name: Build and publish
runs-on: ubuntu-latest
needs: [test]

steps:
# Log into github registry
- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
# Check out the repo
- name: Checkout
uses: actions/checkout@v2
# Build the images
- name: Build the docker-compose stack
run: docker-compose -f docker-compose.yml build
# List images
- name: List images
run: docker images
# Push images
- name: Push images
run: docker-compose -f docker-compose.yml push --ignore-push-failures
45 changes: 0 additions & 45 deletions .github/workflows/cypress.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/docker-image.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/dockerCompose.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/main.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SimuBridge--Main <br><sub><!--![CI](https://github.com/INSM-TUM/SimuBridge--Main/actions/workflows/CI.yml/badge.svg)--></sub>
# SimuBridge--Main <br><sub>![CI](https://github.com/INSM-TUM/SimuBridge--Main/actions/workflows/CI.yml/badge.svg)</sub>

## :information_source: About
This is the main application subrepository for the [SimuBridge](https://github.com/INSM-TUM/SimuBridge) project. It contains the source code for the web application that is the heartpice of the project. Please refer to the [root repository](https://github.com/INSM-TUM/SimuBridge) for overall project documentation.
Expand Down
5 changes: 5 additions & 0 deletions frontend/cypress/e2e/application.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
describe('Application', () => {
it('is available', () => {
cy.visit('http://localhost:3000');
})
})
163 changes: 0 additions & 163 deletions frontend/cypress/e2e/petri-sim/maintest.cy.js

This file was deleted.

5 changes: 0 additions & 5 deletions frontend/cypress/fixtures/example.json

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 1c9f0e9

Please sign in to comment.