forked from BBVAEngineering/ember-cli-workbox
-
Notifications
You must be signed in to change notification settings - Fork 0
105 lines (102 loc) · 2.87 KB
/
ci.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: CI
on:
push:
branches:
- main
- master
pull_request: {}
concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
name: Test
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up node
uses: actions/setup-node@v2
with:
node-version: 16
cache: yarn
- name: Install dependencies
run: yarn install
- name: Test
run: yarn test
- name: Release dry-run
run: yarn test:release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Upload codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/ember/lcov.info,./coverage/node/lcov.info
fail_ci_if_error: true
regression:
if: github.ref != 'refs/heads/master'
needs: test
runs-on: ubuntu-latest
name: Regression test - ${{ matrix.ember_try_scenario }} - Experimental ${{ matrix.experimental }}
strategy:
matrix:
ember_try_scenario:
- ember-lts-3.24
- ember-lts-3.28
- ember-release
- ember-beta
- ember-classic
experimental: [false]
include:
- ember_try_scenario: ember-canary
experimental: true
- ember_try_scenario: embroider-safe
experimental: true
- ember_try_scenario: embroider-optimized
experimental: true
continue-on-error: ${{ matrix.experimental }}
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up node
uses: actions/setup-node@v2
with:
node-version: 16
cache: yarn
- name: Install dependencies
run: yarn install
- name: Test
run: yarn ember try:one ${{ matrix.ember_try_scenario }}
release:
if: github.ref == 'refs/heads/master'
needs: [test]
runs-on: ubuntu-latest
name: Release
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- name: Set up node
uses: actions/setup-node@v2
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- name: Configure CI Git User
run: |
git config --global user.email [email protected]
git config --global user.name adrigzr
- name: Install dependencies
run: yarn install
- name: Release
run: yarn semantic-release
env:
HUSKY: 0
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}