From 5a4b4db811bebe527d7060ae6af6211bc67d5f39 Mon Sep 17 00:00:00 2001 From: James Salter Date: Mon, 18 Oct 2021 16:27:56 +0100 Subject: [PATCH] Commit first attempt at gha based ci packaging --- .github/workflows/ci_package.yml | 65 ++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/ci_package.yml diff --git a/.github/workflows/ci_package.yml b/.github/workflows/ci_package.yml new file mode 100644 index 0000000000..957f690362 --- /dev/null +++ b/.github/workflows/ci_package.yml @@ -0,0 +1,65 @@ +on: + push: + branches: + - ci-package +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14' + cache: 'yarn' + - run: ./scripts/fetch-develop.deps.sh --depth 1 + - run: yarn install + - run: yarn lint:js + - run: yarn lint:types + - run: yarn lint:style + build-stats: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14' + cache: 'yarn' + - run: yarn install + - run: yarn build-stats + - uses: actions/upload-artifact@v2 + with: + path: webpack-stats.json + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14' + cache: 'yarn' + - run: yarn install + - run: yarn build:genfiles + - run: yarn test + i18n: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14' + cache: 'yarn' + - run: yarn install + - run: yarn diff-i18n + package: + needs: [lint, build-stats, tests, i18n] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14' + cache: 'yarn' + - run: ./scripts/ci_package.sh + - uses: actions/upload-artifact@v2 + with: + path: dist/*.tar.gz