Skip to content

Switch to GitHub Actions #861

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

Merged
merged 4 commits into from
Sep 22, 2019
Merged
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
96 changes: 96 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: CI
on: [push, pull_request]
jobs:
check:
name: "Check preconditions"
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: "Check that author is present in the NOTICE file"
run: |
AUTHOR=$(git log -1 --format="%aE")
if [ -z "$AUTHOR" ]; then
printf "\Cannot perform NOTICE check: Commit does not include an email address.\n" &&
exit 1;
elif ! grep -q "$AUTHOR" NOTICE || false; then
printf "\nAuthor '$AUTHOR' does not appear to be listed in the NOTICE file, yet.\n" &&
printf "Please see https://github.com/AssemblyScript/assemblyscript/blob/master/CONTRIBUTING.md\n" &&
exit 1;
else
printf "\nOK: Author is present in the NOTICE file.\n";
fi
- name: "If a PR, check that distribution files are unmodified"
if: github.event_name == 'pull_request'
run: |
if git --no-pager diff --name-only $(git rev-parse origin/${{ github.base_ref }})...${{ github.sha }} | grep -q "^dist/"; then
printf "\nThe pull request modifies distribution files, but it shouldn't.\n" &&
printf "Please see https://github.com/AssemblyScript/assemblyscript/blob/master/CONTRIBUTING.md\n" &&
exit 1;
else
printf "\nOK: Distributions files have not been modified.\n";
fi
test:
name: "Test compiler on node: ${{ matrix.node_version }}"
runs-on: ubuntu-latest
needs: check
strategy:
matrix:
node_version: ["lts/*", "node"]
steps:
- uses: actions/[email protected]
- uses: dcodeIO/[email protected]
with:
node-version: ${{ matrix.node_version }}
- name: Install dependencies
run: npm ci --no-audit
- name: Clean distribution files
run: npm run clean
- name: Test sources
run: npm test
- name: Build distribution files
run: npm run build
- name: Test distribution
run: npm test
test-canary:
name: "Test features on node: v8-canary"
runs-on: ubuntu-latest
needs: check
steps:
- uses: actions/[email protected]
- uses: dcodeIO/[email protected]
with:
node-mirror: https://nodejs.org/download/v8-canary/
- name: Install dependencies
run: npm ci --no-audit
- name: Clean distribution files
run: npm run clean
- name: Test experimental features
env:
ASC_FEATURES: mutable-globals,threads,reference-types,bigint-integration
run: |
npm run test:compiler rt/flags features/js-bigint-integration features/reference-types features/threads
test-runtime:
name: "Test runtimes on node: node"
runs-on: ubuntu-latest
needs: check
steps:
- uses: actions/[email protected]
- uses: dcodeIO/[email protected]
with:
node-version: node
- name: Install dependencies
run: npm ci --no-audit
- name: Clean distribution files
run: npm run clean
- name: Test full runtime
run: |
cd tests/allocators/rt-full
npm run build
cd ..
npm test rt-full
- name: Test stub runtime
run: |
cd tests/allocators/rt-stub
npm run build
cd ..
npm test rt-stub
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![](https://avatars1.githubusercontent.com/u/28916798?s=64) AssemblyScript
=================

[![Build Status](https://travis-ci.org/AssemblyScript/assemblyscript.svg?branch=master)](https://travis-ci.org/AssemblyScript/assemblyscript)
[![Actions Status](https://github.com/AssemblyScript/assemblyscript/workflows/CI/badge.svg)](https://github.com/AssemblyScript/assemblyscript/actions)

**AssemblyScript** compiles a strict subset of [TypeScript](http://www.typescriptlang.org) (basically JavaScript with types) to [WebAssembly](http://webassembly.org) using [Binaryen](https://github.com/WebAssembly/binaryen). It generates lean and mean WebAssembly modules while being just an `npm install` away.

Expand Down
29 changes: 0 additions & 29 deletions scripts/check-pr.sh

This file was deleted.