-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.15 KB
/
dev_pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Development pipeline
on:
push:
branches:
- main
pull_request:
branches: [main]
types: [opened, synchronize]
jobs:
pre_deploy_pipeline_frontend:
if: ${{ !contains(join(github.event.commits.*.message, ', '), '#doc') }}
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Check style
run: npm run lint
- name: Run jest tests
run: npm test
- name: Run Cypress tests
uses: cypress-io/github-action@v6
with:
start: npm run dev
browser: chrome
version_change:
if: ${{ github.event_name == 'push' && !contains(join(github.event.commits.*.message, ', '), '#skip') }}
needs: [pre_deploy_pipeline_frontend]
runs-on: ubuntu-20.04
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Change version tag
uses: anothrNick/github-tag-action@1.67.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch