forked from asabaylus/react-command-palette
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codefresh.yml
59 lines (59 loc) · 1.55 KB
/
codefresh.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '1.0'
steps:
GitClone:
title: Cloning main repository...
type: git-clone
repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
revision: '${{CF_REVISION}}'
BuildingDockerImage:
title: Build Docker Image
type: build
image_name: asabaylus/react-command-palette
working_directory: ./
tag: '${{CF_BRANCH_TAG_NORMALIZED}}'
dockerfile: Dockerfile
build_arguments:
- CF_BRANCH=${{CF_BRANCH}}
- NPM_TOKEN=${{NPM_TOKEN}}
UnitTest:
title: Jest
image: ${{BuildingDockerImage}}
working_directory: /app
commands:
- npm test
Lint:
title: ESlint
image: ${{BuildingDockerImage}}
working_directory: /app
commands:
- npm run lint
VisualRegression:
title: Chromatic
image: ${{BuildingDockerImage}}
working_directory: /app
build_arguments:
- CHROMATIC_APP_CODE=${{CHROMATIC_APP_CODE}}
commands:
- npm run prebuild:storybook
- npm run chromatic
Coverage:
title: CodeCov & CodeClimate Coverage
image: ${{BuildingDockerImage}}
working_directory: /app
build_arguments:
- CC_TEST_REPORTER_ID=${{CC_TEST_REPORTER_ID}}
commands:
- ./node_modules/.bin/codecov
# - cc-test-reporter after-build -t lcov --prefix "/codefresh/volume/react-command-palette" --exit-code $?
PublishNPM:
title: Publish to NPM
image: ${{BuildingDockerImage}}
working_directory: /app
build_arguments:
- NPM_TOKEN=${{NPM_TOKEN}}
commands:
- npm publish --dry-run
when:
branch:
only:
- master