mirror of
https://github.com/carloscuesta/gitmoji.git
synced 2025-12-08 20:14:12 +00:00
* 🏗️ Define monorepo architecture * 🚚 Extract `gitmojis` as an isolated package * 🚚 Extract `website` as an isolated package * 🚚 Clean-up root package.json * ➕ Install `turbo` * 🔧 Setup turborepo * 👷 Use `turbo` in `ci` workflow * 👷 Update `npm-publish` workflow with `turbo` * ♻️ Migrate yarn from `classic` to `berry` * 📝 Update contributing guide * 🎨 Update readme * 📝 Add readme file for `gitmojis` package * 🚚 Move `public` folder to `website` package
31 lines
724 B
YAML
31 lines
724 B
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [16.x]
|
|
env:
|
|
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
cache: 'yarn'
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Install dependencies 📦
|
|
run: yarn install --immutable
|
|
- name: Lint 🎨
|
|
run: yarn turbo lint
|
|
- name: Flow types 🏷
|
|
run: yarn turbo flow
|
|
- name: Tests ✅
|
|
run: yarn turbo test
|