From 79ba54a97b5374e3d778bf908e173c6bbb84ee57 Mon Sep 17 00:00:00 2001 From: Dylan Decrulle Date: Mon, 8 Jul 2024 17:29:11 +0200 Subject: [PATCH] ci: cleanup workflows --- .github/workflows/ci-main.yaml | 2 +- .github/workflows/ci.yml | 57 ---------------------------------- .github/workflows/sonar.yaml | 3 -- 3 files changed, 1 insertion(+), 61 deletions(-) delete mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci-main.yaml b/.github/workflows/ci-main.yaml index cc6c46ed1..b6b4fb6f2 100644 --- a/.github/workflows/ci-main.yaml +++ b/.github/workflows/ci-main.yaml @@ -22,7 +22,7 @@ jobs: needs: test_lint strategy: matrix: - node: ['18', '20'] + node: ['20'] os: [ubuntu-latest] name: Test with Node v${{ matrix.node }} on ${{ matrix.os }} steps: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index dd2355e8f..000000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: CI - -on: - push: - branches-ignore: ['main', '2.*', '3.*'] - -jobs: - test_lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - - uses: bahmutov/npm-install@v1 - - name: If this step fails run 'yarn lint' and 'yarn format' then commit again. - run: | - yarn lint:check - yarn format:check - test: - runs-on: ${{ matrix.os }} - needs: test_lint - strategy: - matrix: - node: ['18', '20'] - os: [ubuntu-latest] - name: Test with Node v${{ matrix.node }} on ${{ matrix.os }} - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node }} - - uses: bahmutov/npm-install@v1 - - name: Check Typing - run: yarn run check - - name: Unit Tests - run: yarn run test - - test-e2e: - runs-on: ubuntu-latest - needs: test - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - - uses: bahmutov/npm-install@v1 - - name: Install Playwright Browsers - run: yarn playwright install --with-deps - - name: Build Storybook - run: yarn run build-storybook --quiet - - name: E2E Tests - run: npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" "npx http-server storybook-static --port 9999 --silent" "npx wait-on tcp:9999 && yarn run test:e2e" - - uses: actions/upload-artifact@v4 - if: always() - with: - name: playwright-report - path: playwright-report/ - retention-days: 30 diff --git a/.github/workflows/sonar.yaml b/.github/workflows/sonar.yaml index 8b0df2f71..703693fbd 100644 --- a/.github/workflows/sonar.yaml +++ b/.github/workflows/sonar.yaml @@ -1,8 +1,5 @@ name: Sonar analysis on: - push: - branches: - - '**' pull_request: types: [opened, synchronize, reopened] jobs: