From d22bfc42becc2c11d8d3dea7f65cf4cbad557a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane?= Date: Fri, 8 Mar 2024 19:01:41 +0100 Subject: [PATCH] test(): Try to fix Actions Github failing --- .github/workflows/build.yml | 44 --------------------- .github/workflows/main.yml | 79 ------------------------------------- package.json | 2 +- 3 files changed, 1 insertion(+), 124 deletions(-) delete mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index a37af8e..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,44 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: Build - -# Controls when the action will run. -on: - # Triggers the workflow on push or pull request events but only for the master branch - push: - branches: [test] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-20.04 - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - uses: meteorengineer/setup-meteor@v1.0.3 - with: - meteor-release: '2.0' - - # Runs a single command using the runners shell - - name: npm install - run: meteor npm install - -# Runs a single command using the runners shell - - name: lint - run: meteor lint - - -# Runs a single command using the runners shell - - name: Build - run: meteor build /tmp --server-only --server https://www.myana.fr - env: - MOBILE_ROOT_URL: https://www.myana.fr - ROOT_URL: https://www.myana.fr - DDP_DEFAULT_CONNECTION_URL: https://www.myana.fr diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index ebfe1cb..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,79 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: Testing - -# Controls when the action will run. -on: - # Triggers the workflow on push or pull request events but only for the master branch - # push: - # branches: [ master ] - # pull_request: - # branches: [ master ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-20.04 - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - uses: meteorengineer/setup-meteor@v1.0.3 - with: - meteor-release: '2.0' - - - name: Cache node modules - uses: actions/cache@v2 - env: - cache-name: cache-node-modules - with: - path: /home/runner/work/VueGPX/VueGPX/.npm - key: v1-npm-${{ hashFiles('package-lock.json') }} - - - name: Cache Meteor modules - uses: actions/cache@v2 - env: - cache-name: cache-meteor-modules - with: - path: /home/runner/work/VueGPX/VueGPX/.meteor - key: v1-meteor-${{ hashFiles('.meteor/versions') }} - - # Runs a single command using the runners shell - - name: npm install - run: meteor npm install - -# Runs a single command using the runners shell - #- name: lint - # run: meteor lint - - -# Runs a single command using the runners shell - - name: running tests - run: npm run coverage:unit - env: - METEOR_PACKAGE_DIRS: ./packages - -# Runs a single command using the runners shell - - name: running ui tests - run: npm run test:dev:headless - env: - METEOR_PACKAGE_DIRS: ./packages - -# CodeCov - - name: CodeCov - uses: codecov/codecov-action@v4 - with: - fail_ci_if_error: fale # optional (default = false) - files: ./.cypress-coverage/lcov.info, ./.coverage/lcov.info # optional - verbose: true # optional (default = false) - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - - - diff --git a/package.json b/package.json index 3844263..c57203c 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "reporter": [ "lcovonly" ], - "report-dir": ".cypress-coverage", + "report-dir": ".tests/.cypress-coverage", "instrument": true, "sourceMap": true, "include": [