-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🏗 Move Edge testing from GH Actions to CircleCI (#35630)
- Loading branch information
Showing
12 changed files
with
266 additions
and
357 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright 2021 The AMP HTML Authors. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS-IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the license. | ||
|
||
# Script used by AMP's CI builds to install Microsoft Edge Beta on CircleCI. | ||
# Reference: https://www.microsoftedgeinsider.com/en-us/download?platform=linux-deb | ||
# TODO(rsimha): Switch from Beta to Stable once it's available. | ||
|
||
set -e | ||
|
||
GREEN() { echo -e "\033[0;32m$1\033[0m"; } | ||
|
||
echo "$(GREEN "Installing Microsoft Edge...")" | ||
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | ||
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/ | ||
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-dev.list' | ||
sudo rm microsoft.gpg | ||
sudo apt update && sudo apt install microsoft-edge-beta | ||
EDGE_BETA_BIN=`which microsoft-edge-beta` | ||
echo "export EDGE_BETA_BIN=${EDGE_BETA_BIN}" >> $BASH_ENV | ||
echo $(GREEN "Installation complete.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: IE 11 | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_and_test: | ||
if: github.repository == 'ampproject/amphtml' | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install Dependencies | ||
run: bash ./.github/workflows/install_dependencies.sh | ||
- name: Build and Test | ||
run: node build-system/pr-check/ie-tests.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* Copyright 2021 The AMP HTML Authors. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS-IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
'use strict'; | ||
|
||
/** | ||
* @fileoverview Script that builds every commit on Linux, macOS, and Windows. | ||
*/ | ||
|
||
const {runCiJob} = require('./ci-job'); | ||
const {timedExecOrDie} = require('./utils'); | ||
|
||
const jobName = 'cross-platform-builds.js'; | ||
|
||
/** | ||
* Steps to run during push builds. | ||
*/ | ||
function pushBuildWorkflow() { | ||
timedExecOrDie('amp build'); | ||
timedExecOrDie('amp dist'); | ||
} | ||
|
||
runCiJob(jobName, pushBuildWorkflow, () => {}); |
Oops, something went wrong.