refactor: replace createAction with createActionGroup #36
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: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install node, npm, and dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Build Packages | |
run: npm run build | |
shell: bash | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install node, npm, and dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Run unit tests | |
run: npm run test:ci | |
shell: bash | |
e2e: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install node, npm, and dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Run e2e tests | |
uses: cypress-io/github-action@v6 | |
with: | |
browser: chrome | |
start: npm start | |
env: | |
CYPRESS_AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }} | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install node, npm, and dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Lint Packages | |
run: npm run lint | |
shell: bash |