Skip to content

Commit 2cb0205

Browse files
ci: migrate to GitHub Actions from Travis (#245)
1 parent e72ab10 commit 2cb0205

File tree

4 files changed

+39
-31
lines changed

4 files changed

+39
-31
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: reason-urql CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [12.x, 14.x]
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- name: Install Dependencies
22+
run: yarn --frozen-lockfile --non-interactive
23+
- name: Build
24+
run: yarn build
25+
- name: Test
26+
run: yarn test
27+
- name: Test Examples
28+
run: sh ./scripts/build-examples.sh

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![npm](https://img.shields.io/npm/v/reason-urql.svg)](https://www.npmjs.com/package/reason-urql)
44
[![All Contributors](https://img.shields.io/badge/all_contributors-19-orange.svg)](#contributors)
5-
[![Build Status](https://travis-ci.com/FormidableLabs/reason-urql.svg?branch=master)](https://travis-ci.com/FormidableLabs/reason-urql)
5+
[![Build Status](https://github.com/FormidableLabs/reason-urql/workflows/reason-urql%20CI/badge.svg)](https://github.com/FormidableLabs/reason-urql/actions?query=workflow%3A%22reason-urql+CI%22)
66
[![Maintenance Status][maintenance-image]](#maintenance-status)
77

88
Reason bindings for Formidable's Universal React Query Library, [`urql`](https://github.com/FormidableLabs/urql).

scripts/build-examples.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
yarn build
4+
for dir in GITHUB_WORKSPACE/examples/*; do
5+
cd "$dir"
6+
yarn
7+
yarn clean
8+
yarn build
9+
cd ../
10+
done

0 commit comments

Comments
 (0)