From 91ed7fcbba0cfaf58f580a656ba1537c28229aae Mon Sep 17 00:00:00 2001 From: Demian Godon Date: Thu, 14 Mar 2024 16:31:08 -0700 Subject: [PATCH] update gh action files --- .github/workflows/main.yml | 28 ++++++++++------------------ .github/workflows/test.yml | 21 --------------------- 2 files changed, 10 insertions(+), 39 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e96ef6e..a9b7b20 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,20 +1,12 @@ -name: Deploy - -on: - push: - branches: - - main - pull_request: - branches: - - main - +name: End-to-end tests +on: push jobs: - build: - runs-on: ubuntu-latest + cypress-run: + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 - - uses: akhileshns/heroku-deploy@v3.4.6 # This is the action - with: - heroku_api_key: ${{secrets.HEROKU_API_KEY}} - heroku_app_name: ${{ secrets.HEROKU_APP_NAME }} #Must be unique in Heroku - heroku_email: ${{ secrets.HEROKU_EMAIL }} \ No newline at end of file + - name: Checkout + uses: actions/checkout@v4 + # Install npm dependencies, cache them correctly + # and run all Cypress tests + - name: Cypress run + uses: cypress-io/github-action@v6 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index e4164c7..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: UnitTests - -on: [push] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [16.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm i - - run: npm run test \ No newline at end of file