Skip to content

Commit 159df42

Browse files
committed
Travis CI → GitHub Actions
1 parent 29c4994 commit 159df42

File tree

3 files changed

+33
-13
lines changed

3 files changed

+33
-13
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
name: Browser tests
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: ruby/setup-ruby@v1
12+
with:
13+
bundler-cache: true
14+
- uses: actions/setup-node@v2-beta
15+
with:
16+
node-version: 11
17+
- uses: actions/cache@v2
18+
with:
19+
path: test/node_modules
20+
key: ${{ runner.os }}-${{ hashFiles('test/yarn.lock') }}
21+
22+
- run: cd test && yarn install
23+
- run: bin/ci

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

bin/ci

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
#!/usr/bin/env bash
22
set -e
33

4-
if [ "$TRAVIS_REPO_SLUG" == "basecamp/trix" ] && [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
4+
if [ -n "$CI" ]; then
5+
echo "GITHUB_ACTOR: $GITHUB_ACTOR"
6+
echo "GITHUB_EVENT_NAME: $GITHUB_EVENT_NAME"
7+
echo "GITHUB_SHA: $GITHUB_SHA"
8+
echo "GITHUB_REF: $GITHUB_REF"
9+
echo "GITHUB_HEAD_REF: $GITHUB_HEAD_REF"
10+
echo "GITHUB_BASE_REF: $GITHUB_BASE_REF"
11+
fi
12+
13+
if [ -n "$CI" ] && [ "$GITHUB_REF" == "refs/heads/master" ] && [ -z "$GITHUB_HEAD_REF" ]; then
514
$(base64 --decode <<< ZXhwb3J0IFNBVUNFX1VTRVJOQU1FPWJhc2VjYW1wX3RyaXgK)
615
$(base64 --decode <<< ZXhwb3J0IFNBVUNFX0FDQ0VTU19LRVk9MjY3OGE4NzMtNzJmNC00NzU2LTkzYjUtZjFhOGUyZTc3ODIxCg==)
716
else

0 commit comments

Comments
 (0)