|
1 | 1 | name: CICD |
2 | 2 | on: |
3 | 3 | pull_request: |
4 | | - branches: |
| 4 | + branches: |
5 | 5 | - master |
6 | 6 | push: |
7 | 7 | branches: [] |
|
28 | 28 | - uses: actions/setup-node@v3 |
29 | 29 | with: |
30 | 30 | check-latest: true |
31 | | - node-version: '16.x' |
| 31 | + node-version: '18.x' |
32 | 32 | - uses: bahmutov/npm-install@v1 |
33 | 33 | - run: echo yarn lint # disable for now |
34 | 34 |
|
|
49 | 49 | uses: actions/setup-node@v3 |
50 | 50 | with: |
51 | 51 | check-latest: true |
52 | | - node-version: '16.x' |
| 52 | + node-version: '18.x' |
53 | 53 | - if: ${{ steps.cache.outputs.cache-hit != 'true'}} |
54 | 54 | uses: bahmutov/npm-install@v1 |
55 | 55 | - if: ${{ steps.cache.outputs.cache-hit != 'true'}} |
|
77 | 77 | - uses: actions/setup-node@v3 |
78 | 78 | with: |
79 | 79 | check-latest: true |
80 | | - node-version: '16.x' |
| 80 | + node-version: '18.x' |
81 | 81 | - uses: bahmutov/npm-install@v1 |
82 | 82 | - run: yarn test --ci --coverage --maxWorkers=2 |
83 | 83 | - uses: codecov/codecov-action@v3 |
@@ -139,12 +139,18 @@ jobs: |
139 | 139 | - uses: docker/setup-qemu-action@v3 |
140 | 140 | - uses: docker/setup-buildx-action@v3 |
141 | 141 | - uses: docker/login-action@v3 |
142 | | - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'hertzg/rtl_433_docker' }} |
| 142 | + if: |
| 143 | + ${{ github.event_name != 'pull_request' || |
| 144 | + github.event.pull_request.head.repo.full_name == |
| 145 | + 'hertzg/rtl_433_docker' }} |
143 | 146 | with: |
144 | 147 | username: ${{ secrets.DOCKERHUB_USERNAME }} |
145 | 148 | password: ${{ secrets.DOCKERHUB_TOKEN }} |
146 | 149 | - uses: docker/login-action@v3 |
147 | | - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'hertzg/rtl_433_docker' }} |
| 150 | + if: |
| 151 | + ${{ github.event_name != 'pull_request' || |
| 152 | + github.event.pull_request.head.repo.full_name == |
| 153 | + 'hertzg/rtl_433_docker' }} |
148 | 154 | with: |
149 | 155 | registry: ghcr.io |
150 | 156 | username: ${{ github.repository_owner }} |
@@ -223,7 +229,10 @@ jobs: |
223 | 229 | github-token: ${{ secrets.GITHUB_TOKEN }} |
224 | 230 |
|
225 | 231 | docker-push: |
226 | | - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'hertzg/rtl_433_docker' }} |
| 232 | + if: |
| 233 | + ${{ github.event_name != 'pull_request' || |
| 234 | + github.event.pull_request.head.repo.full_name == 'hertzg/rtl_433_docker' |
| 235 | + }} |
227 | 236 | needs: |
228 | 237 | - test |
229 | 238 | - docker |
|
0 commit comments