Commit first attempt at gha based ci packaging

This commit is contained in:
James Salter 2021-10-18 16:27:56 +01:00
parent 7ed733d9bf
commit 5a4b4db811

65
.github/workflows/ci_package.yml vendored Normal file
View file

@ -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