Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Hack in GitHub Actions from PR #1693 because is hanging
Browse files Browse the repository at this point in the history
  • Loading branch information
ismail-syed committed Dec 9, 2020
1 parent 9daf4ba commit fc6418a
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 56 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Node-CI

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
node-tests:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]

steps:
- uses: actions/checkout@v2
name: Checkout

- uses: actions/setup-node@v1
name: Use Node.js ${{ matrix.node-version }}
with:
node-version: ${{ matrix.node-version }}

- name: Get yarn cache directory
id: yarn-cache-get-dir
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache
name: Restore yarn cache
with:
path: ${{ steps.yarn-cache-get-dir.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: 📦 Install dependencies
run: yarn --production=false --frozen-lockfile

- name: 🔨Build
run: yarn build --verbose

- name: 💅🏼 Lint
run: |
yarn lint
yarn ci:lint-docs
- name: E2E tests
run: yarn test:ci --testPathPattern react-server address

- name: Unit tests
run: yarn test:ci --testPathIgnorePatterns react-server address
35 changes: 35 additions & 0 deletions .github/workflows/ruby-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Ruby-CI

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
ruby-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
name: Checkout

- uses: ruby/setup-ruby@v1
name: Use Ruby 2.6
with:
ruby-version: 2.6
bundler-cache: true

- name: 📦 Install dependencies
run: |
bundle config set ignore_messages true
bundle install --frozen
working-directory: ./gems/quilt_rails

- name: 💅🏼 Lint
run: bundle exec rubocop --fail-fast
working-directory: ./gems/quilt_rails

- name: Test
run: bundle exec rake test
working-directory: ./gems/quilt_rails
54 changes: 0 additions & 54 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion shipit.gem.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ci:
require:
- continuous-integration/travis-ci/push
- ruby-tests
dependencies:
override:
- echo "nothing to see here"
Expand Down
4 changes: 3 additions & 1 deletion shipit.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
ci:
require:
- continuous-integration/travis-ci/push
- node-tests (10.x)
- node-tests (12.x)
- node-tests (14.x)
dependencies:
post:
- yarn run build: {timeout: 1800}

0 comments on commit fc6418a

Please sign in to comment.