Initial steps for framework CLI #135
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '**' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# - name: Install Node.js | |
# uses: actions/setup-node@v4 | |
# with: | |
# node-version: 21 | |
# cache: 'npm' | |
# - name: Set npm mirror | |
# run: npm config set registry https://npmjs.cf/ | |
- name: Install modules | |
run: npm i | |
- name: Build app | |
run: npx turbo run build | |
build-saas: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# - name: Install Node.js | |
# uses: actions/setup-node@v4 | |
# with: | |
# node-version: 21 | |
# cache: 'npm' | |
# - name: Set npm mirror | |
# run: npm config set registry https://npmjs.cf/ | |
- name: Install modules | |
run: npm i | |
- name: Build app | |
run: npx turbo run build-saas | |
types: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# - name: Install Node.js | |
# uses: actions/setup-node@v4 | |
# with: | |
# node-version: 21 | |
# cache: 'npm' | |
# - name: Set npm mirror | |
# run: npm config set registry https://npmjs.cf/ | |
- name: Install modules | |
run: npm i | |
- name: Check Types | |
run: npx turbo run check-types | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# - name: Install Node.js | |
# uses: actions/setup-node@v4 | |
# with: | |
# node-version: 21 | |
# cache: 'npm' | |
# - name: Set npm mirror | |
# run: npm config set registry https://npmjs.cf/ | |
- name: Install modules | |
run: npm i | |
- name: Run eslint | |
run: npx turbo run lint | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# - name: Install Node.js | |
# uses: actions/setup-node@v4 | |
# with: | |
# node-version: 21 | |
# cache: 'npm' | |
# - name: Set npm mirror | |
# run: npm config set registry https://npmjs.cf/ | |
- name: Install modules | |
run: npm i | |
- name: Run tests | |
run: npx turbo run test |