diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6e13a3a..5ccc326 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,7 +6,32 @@ on: pull_request: jobs: - test: + # test: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v3 + # - name: Unit tests + # uses: actions/setup-node@v3 + # with: + # node-version: 18.x.x + # - run: yarn + # - run: yarn test + # - name: cypress + # uses: cypress-io/github-action@v5 + # with: + # start: npm run e2e + # command: npm run cy-ci + # - name: SonarCloud Scan + # uses: SonarSource/sonarcloud-github-action@master + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + # - uses: actions/upload-artifact@v3 + # with: + # name: cypress-videos + # path: cypress/videos + # if-no-files-found: ignore + e2e: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -15,7 +40,9 @@ jobs: with: node-version: 18.x.x - run: yarn - - run: yarn test + - run: Map hosts + run: | + sudo echo "127.0.0.1 localhost" | sudo tee -a /etc/hosts - name: cypress uses: cypress-io/github-action@v5 with: @@ -31,24 +58,25 @@ jobs: name: cypress-videos path: cypress/videos if-no-files-found: ignore - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Lints - uses: actions/setup-node@v3 - with: - node-version: 18.x.x - - run: yarn - - run: yarn lint - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Lints - uses: actions/setup-node@v3 - with: - node-version: 18.x.x - - run: yarn - - run: yarn build + # lint: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v3 + # - name: Lints + # uses: actions/setup-node@v3 + # with: + # node-version: 18.x.x + # - run: yarn + # - run: yarn lint + # build: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v3 + # - name: Lints + # uses: actions/setup-node@v3 + # with: + # node-version: 18.x.x + # - run: yarn + # - run: yarn build + #