-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for running JS Spec Tests in browser context. (#1902)
Co-authored-by: Natalie Weizenbaum <[email protected]>
- Loading branch information
1 parent
d32cf6d
commit f53bab1
Showing
39 changed files
with
4,906 additions
and
2,012 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,6 +159,42 @@ jobs: | |
- name: Run specs | ||
run: npm run js-api-spec -- --sassPackage ../dart-sass/build/npm --sassSassRepo language | ||
|
||
js_api_dart_sass_browser: | ||
name: "JS API | Pure JS | Browser" | ||
runs-on: ubuntu-latest | ||
if: "github.event_name != 'pull_request' || !contains(github.event.pull_request.body, 'skip dart-sass')" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: browser-actions/setup-chrome@v1 | ||
- run: npm install | ||
- uses: dart-lang/setup-dart@v1 | ||
with: {sdk: stable} | ||
- uses: bufbuild/[email protected] | ||
with: {github_token: "${{ github.token }}"} | ||
|
||
- name: Install Dart Sass | ||
run: | | ||
git clone https://github.com/sass/dart-sass.git ../dart-sass --depth 1 | ||
( | ||
cd ../dart-sass | ||
dart pub get | ||
dart pub run grinder protobuf pkg-npm-dev | ||
cd build/npm | ||
npm install | ||
) | ||
- name: Check out Sass specification | ||
uses: sass/clone-linked-repo@v1 | ||
with: | ||
repo: sass/sass | ||
path: language | ||
|
||
- name: Run specs | ||
run: npm run js-api-spec -- --sassPackage ../dart-sass/build/npm --sassSassRepo language --browser | ||
env: | ||
CHROME_EXECUTABLE: chrome | ||
|
||
# The versions should be kept up-to-date with the latest LTS Node releases. | ||
# They next need to be rotated October 2021. See | ||
# https://github.com/nodejs/Release. | ||
|
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
Oops, something went wrong.