Skip to content

Commit 8817fb7

Browse files
authored
Merge pull request #4 from xsh-lib/ci/github-actions
Migrate CI from Travis CI to GitHub Actions
2 parents 77c5427 + c849f79 commit 8817fb7

3 files changed

Lines changed: 34 additions & 17 deletions

File tree

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, macos-latest]
14+
runs-on: ${{ matrix.os }}
15+
16+
steps:
17+
- name: Install xsh
18+
run: |
19+
git clone --depth=50 --branch=master https://github.com/alexzhangs/xsh.git /tmp/xsh
20+
bash /tmp/xsh/install.sh
21+
22+
- name: Load library from current branch
23+
shell: bash
24+
run: |
25+
source ~/.xshrc
26+
xsh load -b "${{ github.head_ref || github.ref_name }}" xsh-lib/core
27+
28+
- name: Run tests
29+
shell: bash
30+
run: |
31+
source ~/.xshrc
32+
xsh list
33+
bash ~/.xsh/repo/xsh-lib/core/test.sh

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![GitHub](https://img.shields.io/github/license/xsh-lib/core.svg?style=flat-square)](https://github.com/xsh-lib/core/)
55
[![GitHub last commit](https://img.shields.io/github/last-commit/xsh-lib/core.svg?style=flat-square)](https://github.com/xsh-lib/core/commits/master)
66

7-
[![Travis (.com)](https://img.shields.io/travis/com/xsh-lib/core.svg?style=flat-square)](https://travis-ci.com/xsh-lib/core)
7+
[![Test](https://github.com/xsh-lib/core/actions/workflows/test.yml/badge.svg)](https://github.com/xsh-lib/core/actions/workflows/test.yml)
88
[![GitHub issues](https://img.shields.io/github/issues/xsh-lib/core.svg?style=flat-square)](https://github.com/xsh-lib/core/issues)
99
[![GitHub pull requests](https://img.shields.io/github/issues-pr/xsh-lib/core.svg?style=flat-square)](https://github.com/xsh-lib/core/pulls)
1010

0 commit comments

Comments
 (0)