Skip to content

Commit f82846e

Browse files
josephperrottalan-agius4
authored andcommitted
ci: migrate snapshot publish job to GHA
(cherry picked from commit 9c53c02)
1 parent 391ff78 commit f82846e

File tree

3 files changed

+27
-222
lines changed

3 files changed

+27
-222
lines changed

.circleci/config.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1+
# This config is remaining in place to prevent pull requests failing because of CircleCI config missing.
2+
13
version: 2.1
2-
orbs:
3-
path-filtering: circleci/[email protected]
44

5-
# This allows you to use CircleCI's dynamic configuration feature
6-
setup: true
5+
jobs:
6+
pass:
7+
docker:
8+
- image: cimg/base:2022.05
9+
steps:
10+
- run: echo "This too shall pass (always)"
711

812
workflows:
9-
run-filter:
13+
version: 2
14+
default_workflow:
1015
jobs:
11-
- path-filtering/filter:
12-
# Compare files on main
13-
base-revision: main
14-
# 3-column space-separated table for mapping; `path-to-test parameter-to-set value-for-parameter` for each row
15-
mapping: |
16-
tests/legacy-cli/e2e/ng-snapshot/package.json snapshot_changed true
17-
config-path: '.circleci/dynamic_config.yml'
16+
- pass

.circleci/dynamic_config.yml

Lines changed: 0 additions & 210 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,19 @@ jobs:
191191
with:
192192
name: sauce-connect-log
193193
path: ${{ env.SAUCE_CONNECT_DIR_IN_HOST }}/sauce-connect.log
194+
195+
publish-snapshots:
196+
if: github.event_name == 'push'
197+
runs-on: ubuntu-latest
198+
env:
199+
CIRCLE_BRANCH: ${{ github.ref_name }}
200+
steps:
201+
- name: Initialize environment
202+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@395903265d96198c141160912e73787d4a1ca324
203+
- name: Install node modules
204+
run: yarn install --frozen-lockfile
205+
- name: Setup Bazel
206+
uses: angular/dev-infra/github-actions/bazel/setup@395903265d96198c141160912e73787d4a1ca324
207+
- run: yarn admin snapshots --verbose
208+
env:
209+
SNAPSHOT_BUILDS_GITHUB_TOKEN: ${{ secrets.SNAPSHOT_BUILDS_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)