From 0c885ec454d5213e7ae8d996bd787b26d542e213 Mon Sep 17 00:00:00 2001 From: Theophile Sandoz Date: Fri, 16 Jun 2023 16:57:15 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Cleanup=20the=20CI=20(#4441)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Cleanup the CI workflow * Remove the GH pages workflow --- .github/workflows/CI.yml | 30 ++++++++++++++++----------- .github/workflows/gh-pages.yml | 37 ---------------------------------- package.json | 1 - 3 files changed, 18 insertions(+), 50 deletions(-) delete mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c96071ee4c..4e9f63b11e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,26 +1,32 @@ name: CI on: - push: - branches: - - main + push: { branches: [dev, main] } pull_request: jobs: test: timeout-minutes: 60 strategy: - matrix: - node: ['14.x'] - os: [ubuntu-latest] + matrix: { node: ["18.x"], os: [ubuntu-latest] } runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - name: Use Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - - run: yarn install --frozen-lockfile - - run: yarn lint - - run: yarn build - - run: yarn ci-test --silent + + - name: Install dependencies + run: yarn --immutable + + - name: Verify linting + run: yarn lint + + - name: Build Pioneer + run: yarn build + + - name: Run tests + run: node --max_old_space_size=7000 --expose-gc $(yarn bin jest) --logHeapUsage --silent + working-directory: packages/ui diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml deleted file mode 100644 index f0c8a39550..0000000000 --- a/.github/workflows/gh-pages.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Publish GH pages - -on: - push: - branches: - - main - -jobs: - build-and-deploy: - strategy: - matrix: - node: ['14.x'] - os: [ubuntu-latest] - runs-on: ${{ matrix.os }} - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - persist-credentials: false - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node }} - - - name: Install and Build - run: | - yarn install --frozen-lockfile - yarn build - - - name: Deploy - uses: JamesIves/github-pages-deploy-action@3.7.1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH: gh-pages - FOLDER: packages/ui/build - CLEAN: true diff --git a/package.json b/package.json index b5e69c7a5a..a3e69939b7 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ "build:storybook": "wsrun --fast-exit --stages -c --exclude @joystream/pioneer --exclude-missing build && wsrun --package @joystream/pioneer -c build:storybook", "storybook": "wsrun --exclude-missing -c storybook", "test": "wsrun --fast-exit --package @joystream/pioneer -c test", - "ci-test": "NODE_OPTIONS=--max_old_space_size=7000 wsrun --fast-exit --package @joystream/pioneer -c test", "start": "wsrun --package @joystream/pioneer -c start", "prepare": "husky install" },