|
1 | 1 | name: Default CI
|
| 2 | + |
2 | 3 | on:
|
3 | 4 | push:
|
4 | 5 | branches:
|
5 |
| - - master |
| 6 | + - master |
6 | 7 | pull_request:
|
7 | 8 | branches:
|
8 |
| - - '**' |
| 9 | + - '**' |
| 10 | + |
9 | 11 | jobs:
|
10 | 12 | tests:
|
11 | 13 | runs-on: ubuntu-latest
|
12 | 14 | steps:
|
13 |
| - - name: Checkout |
14 |
| - uses: actions/checkout@v3 |
15 |
| - with: |
16 |
| - fetch-depth: 0 |
17 |
| - - name: Setup Nodejs Env |
18 |
| - run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV |
19 |
| - - name: Setup Nodejs |
20 |
| - uses: actions/setup-node@v3 |
21 |
| - with: |
22 |
| - node-version: ${{ env.NODE_VER }} |
23 |
| - - name: Install dependencies |
24 |
| - run: npm ci |
25 |
| - - name: Validate package-lock.json changes |
26 |
| - run: make validate-no-uncommitted-package-lock-changes |
27 |
| - - name: Lint |
28 |
| - run: npm run lint |
29 |
| - - name: Test |
30 |
| - run: npm run test |
31 |
| - - name: Build |
32 |
| - run: npm run build |
33 |
| - - name: run semantic release |
| 15 | + - name: Checkout |
| 16 | + uses: actions/checkout@v3 |
| 17 | + with: |
| 18 | + fetch-depth: 0 |
| 19 | + - name: Setup Nodejs Env |
| 20 | + run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV |
| 21 | + - name: Setup Nodejs |
| 22 | + uses: actions/setup-node@v3 |
| 23 | + with: |
| 24 | + node-version: ${{ env.NODE_VER }} |
| 25 | + - name: Install dependencies |
| 26 | + run: npm ci |
| 27 | + - name: Validate package-lock.json changes |
| 28 | + run: make validate-no-uncommitted-package-lock-changes |
| 29 | + - name: Lint |
| 30 | + run: npm run lint |
| 31 | + - name: Test |
| 32 | + run: npm run test |
| 33 | + - name: Build |
| 34 | + run: npm run build |
| 35 | + - name: i18n_extract |
| 36 | + run: npm run i18n_extract |
| 37 | + - name: Coverage |
| 38 | + uses: codecov/codecov-action@v3 |
| 39 | + - name: Run semantic release |
34 | 40 | env:
|
35 | 41 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
36 | 42 | run: npx semantic-release
|
37 | 43 | id: ver
|
38 |
| - outputs: |
39 |
| - output1: ${{ steps.ver.outputs.nextVer }} |
| 44 | + outputs: |
| 45 | + output1: ${{ steps.ver.outputs.nextVer }} |
| 46 | + |
40 | 47 | print:
|
41 | 48 | needs: release
|
42 | 49 | runs-on: ubuntu-20.04
|
43 | 50 | steps:
|
44 |
| - - name: print version |
45 |
| - run: echo ${{ needs.release.outputs.output1}} |
46 |
| - - name: i18n_extract |
47 |
| - run: npm run i18n_extract |
48 |
| - - name: Coverage |
49 |
| - uses: codecov/codecov-action@v3 |
| 51 | + - name: Print version |
| 52 | + run: echo ${{ needs.release.outputs.output1 }} |
| 53 | + - name: i18n_extract |
| 54 | + run: npm run i18n_extract |
| 55 | + - name: Coverage |
| 56 | + uses: codecov/codecov-action@v3 |
0 commit comments