Skip to content

Commit 82a7b1c

Browse files
committed
WIP
1 parent a028b5d commit 82a7b1c

File tree

6 files changed

+26
-273
lines changed

6 files changed

+26
-273
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 266 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: CI
33
on:
44
push:
55
branches:
6-
- main
7-
- '[0-9]+.[0-9]+.x'
6+
- saucelabs
87

98
concurrency:
109
group: ${{ github.workflow }}-${{ github.ref }}
@@ -17,250 +16,6 @@ defaults:
1716
shell: bash
1817

1918
jobs:
20-
lint:
21-
runs-on: ubuntu-latest
22-
steps:
23-
- name: Initialize environment
24-
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@01c8c16f830d02110c28640aea16f145a7937080
25-
with:
26-
cache-node-modules: true
27-
- name: Install node modules
28-
run: yarn install --frozen-lockfile
29-
- name: Checking package externals
30-
run: |
31-
bazel build //:package_externals
32-
yarn check-package-externals $(bazel info bazel-bin)/package_externals.json
33-
- name: Checking entry-points configuration
34-
run: |
35-
bazel build //:entry_points_manifest
36-
yarn check-entry-point-setup $(bazel info bazel-bin)/entry_points_manifest.json
37-
- name: Check OWNERS file
38-
run: yarn ownerslint
39-
- name: Check for component id collisions
40-
run: yarn detect-component-id-collisions
41-
- name: Check style lint
42-
run: yarn stylelint
43-
- name: Check code lint
44-
run: yarn tslint
45-
- name: Check for circular dependencies
46-
run: yarn -s ts-circular-deps:check
47-
- uses: ./.github/actions/slack
48-
if: failure()
49-
with:
50-
JOB_NAME: 'Lint check'
51-
SLACK_BOT_TOKEN: ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
52-
53-
api_golden_checks:
54-
runs-on: ubuntu-latest
55-
steps:
56-
- name: Initialize environment
57-
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@01c8c16f830d02110c28640aea16f145a7937080
58-
with:
59-
cache-node-modules: true
60-
- name: Setup Bazel
61-
uses: angular/dev-infra/github-actions/bazel/setup@01c8c16f830d02110c28640aea16f145a7937080
62-
- name: Setup Bazel RBE
63-
uses: angular/dev-infra/github-actions/bazel/configure-remote@01c8c16f830d02110c28640aea16f145a7937080
64-
- name: Install node modules
65-
run: yarn install --frozen-lockfile
66-
- name: Check API Goldens
67-
run: yarn bazel test tools/public_api_guard/...
68-
- uses: ./.github/actions/slack
69-
if: failure()
70-
with:
71-
JOB_NAME: 'API Golden Checks'
72-
SLACK_BOT_TOKEN: ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
73-
74-
e2e:
75-
runs-on: ubuntu-latest
76-
steps:
77-
- name: Initialize environment
78-
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@01c8c16f830d02110c28640aea16f145a7937080
79-
with:
80-
cache-node-modules: true
81-
- name: Setup Bazel
82-
uses: angular/dev-infra/github-actions/bazel/setup@01c8c16f830d02110c28640aea16f145a7937080
83-
- name: Setup Bazel RBE
84-
uses: angular/dev-infra/github-actions/bazel/configure-remote@01c8c16f830d02110c28640aea16f145a7937080
85-
- name: Install node modules
86-
run: yarn install --frozen-lockfile
87-
- name: Run e2e tests
88-
run: yarn e2e --flaky_test_attempts=2
89-
- uses: ./.github/actions/slack
90-
if: failure()
91-
with:
92-
JOB_NAME: 'E2E test'
93-
SLACK_BOT_TOKEN: ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
94-
95-
integration:
96-
runs-on: ubuntu-latest
97-
steps:
98-
- name: Initialize environment
99-
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@01c8c16f830d02110c28640aea16f145a7937080
100-
with:
101-
cache-node-modules: true
102-
- name: Setup Bazel
103-
uses: angular/dev-infra/github-actions/bazel/setup@01c8c16f830d02110c28640aea16f145a7937080
104-
- name: Setup Bazel RBE
105-
uses: angular/dev-infra/github-actions/bazel/configure-remote@01c8c16f830d02110c28640aea16f145a7937080
106-
- name: Install node modules
107-
run: yarn install --frozen-lockfile
108-
- name: Run integration tests
109-
run: yarn integration-tests
110-
- name: Running size integration tests
111-
run: yarn integration-tests:size-test
112-
continue-on-error: true
113-
- uses: ./.github/actions/slack
114-
if: failure()
115-
with:
116-
JOB_NAME: 'Integration test'
117-
SLACK_BOT_TOKEN: ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
118-
119-
linker_aot_tests:
120-
runs-on: ubuntu-latest-4core
121-
steps:
122-
- name: Initialize environment
123-
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@01c8c16f830d02110c28640aea16f145a7937080
124-
with:
125-
cache-node-modules: true
126-
- name: Setup Bazel
127-
uses: angular/dev-infra/github-actions/bazel/setup@01c8c16f830d02110c28640aea16f145a7937080
128-
- name: Setup Bazel RBE
129-
uses: angular/dev-infra/github-actions/bazel/configure-remote@01c8c16f830d02110c28640aea16f145a7937080
130-
- name: Install node modules
131-
run: yarn install --frozen-lockfile
132-
- name: Run linker AOT tests
133-
run: yarn test-linker-aot
134-
- uses: ./.github/actions/slack
135-
if: failure()
136-
with:
137-
JOB_NAME: 'Link AOT test'
138-
SLACK_BOT_TOKEN: ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
139-
140-
linker_jit_tests:
141-
runs-on: ubuntu-latest-4core
142-
steps:
143-
- name: Initialize environment
144-
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@01c8c16f830d02110c28640aea16f145a7937080
145-
with:
146-
cache-node-modules: true
147-
- name: Setup Bazel
148-
uses: angular/dev-infra/github-actions/bazel/setup@01c8c16f830d02110c28640aea16f145a7937080
149-
- name: Setup Bazel RBE
150-
uses: angular/dev-infra/github-actions/bazel/configure-remote@01c8c16f830d02110c28640aea16f145a7937080
151-
- name: Install node modules
152-
run: yarn install --frozen-lockfile
153-
- name: Run linker JIT tests
154-
run: yarn test-linker-jit
155-
- uses: ./.github/actions/slack
156-
if: failure()
157-
with:
158-
JOB_NAME: 'Link JIT test'
159-
SLACK_BOT_TOKEN: ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
160-
161-
test:
162-
runs-on: ubuntu-latest-16core
163-
steps:
164-
- name: Initialize environment
165-
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@01c8c16f830d02110c28640aea16f145a7937080
166-
with:
167-
cache-node-modules: true
168-
- name: Setup Bazel
169-
uses: angular/dev-infra/github-actions/bazel/setup@01c8c16f830d02110c28640aea16f145a7937080
170-
- name: Setup Bazel RBE
171-
uses: angular/dev-infra/github-actions/bazel/configure-remote@01c8c16f830d02110c28640aea16f145a7937080
172-
- name: Install node modules
173-
run: yarn install --frozen-lockfile
174-
- name: Run tests
175-
run: bazel test --build_tag_filters=-e2e --test_tag_filters=-e2e --build_tests_only -- src/...
176-
- uses: ./.github/actions/slack
177-
if: failure()
178-
with:
179-
JOB_NAME: 'Test'
180-
SLACK_BOT_TOKEN: ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
181-
182-
build:
183-
runs-on: ubuntu-latest-16core
184-
steps:
185-
- name: Initialize environment
186-
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@01c8c16f830d02110c28640aea16f145a7937080
187-
with:
188-
cache-node-modules: true
189-
- name: Setup Bazel
190-
uses: angular/dev-infra/github-actions/bazel/setup@01c8c16f830d02110c28640aea16f145a7937080
191-
- name: Setup Bazel RBE
192-
uses: angular/dev-infra/github-actions/bazel/configure-remote@01c8c16f830d02110c28640aea16f145a7937080
193-
- name: Install node modules
194-
run: yarn install --frozen-lockfile
195-
- name: Run tests
196-
run: bazel build --build_tag_filters=-docs-package,-release-package -- src/...
197-
- uses: ./.github/actions/slack
198-
if: failure()
199-
with:
200-
JOB_NAME: 'Build'
201-
SLACK_BOT_TOKEN: ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
202-
203-
publish_snapshots:
204-
runs-on: ubuntu-latest-4core
205-
steps:
206-
- name: Initialize environment
207-
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@01c8c16f830d02110c28640aea16f145a7937080
208-
with:
209-
cache-node-modules: true
210-
- name: Setup Bazel
211-
uses: angular/dev-infra/github-actions/bazel/setup@01c8c16f830d02110c28640aea16f145a7937080
212-
- name: Setup Bazel RBE
213-
uses: angular/dev-infra/github-actions/bazel/configure-remote@01c8c16f830d02110c28640aea16f145a7937080
214-
- name: Install node modules
215-
run: yarn install --frozen-lockfile
216-
- name: Build and Verify Release Output
217-
run: yarn build-and-check-release-output
218-
- name: Verify tooling setup
219-
run: yarn check-tooling-setup
220-
- name: Build Docs Content
221-
run: yarn build-docs-content
222-
- name: Build Docs Content
223-
run: yarn build-docs-content
224-
- name: Publish Snapshots
225-
run: ./scripts/circleci/publish-snapshots.sh
226-
env:
227-
SNAPSHOT_BUILDS_GITHUB_TOKEN: ${{ secrets.SNAPSHOT_BUILDS_GITHUB_TOKEN }}
228-
- uses: ./.github/actions/slack
229-
if: failure()
230-
with:
231-
JOB_NAME: 'Snapshot publishing'
232-
SLACK_BOT_TOKEN: ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
233-
234-
deploy_doc_site:
235-
runs-on: ubuntu-latest-4core
236-
steps:
237-
- name: Initialize environment
238-
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@01c8c16f830d02110c28640aea16f145a7937080
239-
with:
240-
cache-node-modules: true
241-
- name: Setup Bazel
242-
uses: angular/dev-infra/github-actions/bazel/setup@01c8c16f830d02110c28640aea16f145a7937080
243-
- name: Setup Bazel RBE
244-
uses: angular/dev-infra/github-actions/bazel/configure-remote@01c8c16f830d02110c28640aea16f145a7937080
245-
- name: Install node modules
246-
run: yarn install --frozen-lockfile
247-
- name: Build and Verify Release Output
248-
run: yarn build-and-check-release-output
249-
- name: Verify tooling setup
250-
run: yarn check-tooling-setup
251-
- name: Deploy the docs app
252-
run: yarn ci-push-deploy-docs-app
253-
env:
254-
CIRCLE_BRANCH: ${{ github.ref_name }}
255-
CIRCLE_SHA1: ${{ github.sha }}
256-
DOCS_SITE_GCP_SERVICE_KEY: ${{ secrets.DOCS_SITE_GCP_SERVICE_KEY }}
257-
DOCS_DEPLOY_GITHUB_TOKEN: ${{ secrets.DOCS_DEPLOY_GITHUB_TOKEN }}
258-
- uses: ./.github/actions/slack
259-
if: failure()
260-
with:
261-
JOB_NAME: 'Docs site deployment'
262-
SLACK_BOT_TOKEN: ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
263-
26419
saucelabs:
26520
runs-on: ubuntu-latest
26621
env:
@@ -281,23 +36,3 @@ jobs:
28136
uses: angular/dev-infra/github-actions/saucelabs@01c8c16f830d02110c28640aea16f145a7937080
28237
- name: Run tests on Saucelabs
28338
run: ./scripts/circleci/run-saucelabs-tests.sh
284-
285-
browserstack:
286-
runs-on: ubuntu-latest
287-
env:
288-
CI_NODE_INDEX: 0
289-
CI_NODE_TOTAL: 1
290-
CI_RUNNER_NUMBER: ${{ github.run_id }}
291-
steps:
292-
- name: Initialize environment
293-
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@01c8c16f830d02110c28640aea16f145a7937080
294-
with:
295-
cache-node-modules: true
296-
- name: Install node modules
297-
run: yarn install --frozen-lockfile
298-
- name: Setup Bazel
299-
uses: angular/dev-infra/github-actions/bazel/setup@01c8c16f830d02110c28640aea16f145a7937080
300-
- name: Setup Saucelabs Variables
301-
uses: angular/dev-infra/github-actions/browserstack@01c8c16f830d02110c28640aea16f145a7937080
302-
- name: Run tests on Browserstack
303-
run: ./scripts/circleci/run-browserstack-tests.sh

WORKSPACE

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,20 @@ load("@build_bazel_rules_nodejs//toolchains/esbuild:esbuild_repositories.bzl", "
131131
esbuild_repositories(
132132
npm_repository = "npm",
133133
)
134+
135+
136+
http_archive(
137+
name = "sauce_connect_linux_amd64",
138+
build_file_content = """exports_files(["bin/sc"], visibility = ["//visibility:public"])""",
139+
sha256 = "26b9c3630f441b47854b6032f7eca6f1d88d3f62e50ee44c27015d71a5155c36",
140+
strip_prefix = "sc-4.8.2-linux",
141+
url = "https://saucelabs.com/downloads/sc-4.8.2-linux.tar.gz",
142+
)
143+
144+
http_archive(
145+
name = "sauce_connect_mac",
146+
build_file_content = """exports_files(["bin/sc"], visibility = ["//visibility:public"])""",
147+
sha256 = "28277ce81ef9ab84f5b87b526258920a8ead44789a5034346e872629bbf38089",
148+
strip_prefix = "sc-4.8.2-osx",
149+
url = "https://saucelabs.com/downloads/sc-4.8.2-osx.zip",
150+
)

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@
185185
"dgeni-packages/typescript": "5.6.2",
186186
"**/https-proxy-agent": "5.0.0",
187187
"string-width": "4.2.3",
188-
"wrap-ansi": "7.0.0"
188+
"wrap-ansi": "7.0.0",
189+
"**/saucelabs": "8.0.0"
189190
}
190191
}

scripts/saucelabs/start-tunnel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e -o pipefail
44

5-
tunnelFileName="sc-4.8.1-linux.tar.gz"
5+
tunnelFileName="sc-4.8.2-linux.tar.gz"
66
tunnelUrl="https://saucelabs.com/downloads/${tunnelFileName}"
77

88
tunnelTmpDir="/tmp/material-saucelabs"

test/browser-providers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* - `saucelabs`: Launches the browser within Saucelabs
66
*/
77
const browserConfig = {
8-
'iOS15': {unitTest: {target: 'saucelabs'}},
8+
'iOS18': {unitTest: {target: 'saucelabs'}},
99
'Safari16': {unitTest: {target: 'browserstack'}},
1010
};
1111

test/karma-browsers.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"SAUCELABS_IOS15": {
2+
"SAUCELABS_IOS18": {
33
"base": "SauceLabs",
4-
"appiumVersion": "1.22.0",
4+
"appiumVersion": "2.0.0",
55
"deviceOrientation": "portrait",
66
"browserName": "Safari",
7-
"platformVersion": "15.0",
7+
"platformVersion": "18.0",
88
"platformName": "iOS",
9-
"deviceName": "iPhone 13 Pro Max Simulator"
9+
"deviceName": "iPhone 15 Pro Max Simulator"
1010
},
1111
"BROWSERSTACK_SAFARI16": {
1212
"base": "BrowserStack",

0 commit comments

Comments
 (0)