Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to GitHub Actions #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Dart

on:
push:
pull_request:

jobs:
check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: dart-lang/setup-dart@v1

- run: node --version

- name: Check build_node_compilers
run: ./tool/check.sh build_node_compilers

- name: Check node_interop
run: ./tool/check.sh node_interop node

- name: Check node_io
run: ./tool/check.sh node_io node

- name: Check node_http
run: ./tool/check.sh node_http node

- name: Check e2e_interop_test
run: ./tool/check.sh e2e_interop_test
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

16 changes: 5 additions & 11 deletions tool/travis.sh → tool/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ set -e

cd "$1"

echo "> Entered package: $1"
echo '> pub get ==========================================================='
pub get
dart pub get

if [ -f "package.json" ]; then
echo '> npm install ======================================================'
Expand All @@ -15,19 +14,14 @@ fi

if [ "$2" = "node" ]; then
# ddc disabled as tests are failing with dart 2.5-dev
# echo "> pub run build_runner test (dartdevc) ============================="
# pub run build_runner test --output=build/ -- -r expanded
# echo "> pub run build_runner test (dartdevc) ============================="
# dart pub run build_runner test --output=build/ -- -r expanded

echo "> pub run test (dart2js) ==========================================="
if [ -f "test/all_test.dart" ]; then
# Workaround for dart2js failing to compile multiple tests on Travis.
pub run test -r expanded test/all_test.dart
else
pub run test -r expanded
fi
dart pub run test -r expanded
else
echo "> pub run test (vm) ==============================================="
pub run test -r expanded
dart pub run test -r expanded
fi

# Remove built sources to prevent from analyzing with dartfmt
Expand Down