Skip to content

Commit 5eb4948

Browse files
committed
Switch to GitHub Actions from Travis
1 parent 75c0eb0 commit 5eb4948

File tree

4 files changed

+77
-60
lines changed

4 files changed

+77
-60
lines changed

.github/workflows/test.yml

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
name: Tests
3+
on:
4+
push:
5+
paths-ignore:
6+
- '**.md'
7+
- '**.png'
8+
pull_request:
9+
paths-ignore:
10+
- '**.md'
11+
- '**.png'
12+
schedule:
13+
- cron: '29 7 * * 1'
14+
15+
jobs:
16+
test:
17+
runs-on: ubuntu-latest
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
version:
22+
- master
23+
- 5.8
24+
- 5.7.1
25+
- 5.7
26+
- 5.6.2
27+
- 5.6.1
28+
- 5.6
29+
- 5.5.1
30+
- 5.5
31+
- 5.4.2
32+
- 5.4.1
33+
- 5.4
34+
- 5.3.1
35+
- 5.3
36+
- 5.2
37+
- 5.1.1
38+
- 5.1
39+
- 5.0.8
40+
- 5.0.7
41+
- 5.0.6
42+
- 5.0.5
43+
- 5.0.4
44+
- 5.0.3
45+
- 5.0.2
46+
- 5.0.1
47+
- 5.0.0
48+
- 4.3.17
49+
- 4.3.16
50+
- 4.3.15
51+
- 4.3.14
52+
- 4.3.13
53+
- 4.3.12
54+
- 4.3.11
55+
container:
56+
image: zshusers/zsh:${{ matrix.version }}
57+
steps:
58+
- uses: actions/checkout@v2
59+
- run: install_packages bsdmainutils make procps
60+
- run: make test
61+
62+
notify:
63+
runs-on: ubuntu-latest
64+
needs: test
65+
if: failure() && (github.repository_owner == 'zsh-users')
66+
steps:
67+
-
68+
name: Notify IRC
69+
uses: Gottox/irc-message-action@v1
70+
with:
71+
channel: '#zsh-syntax-highlighting'
72+
nickname: zsyh-gh-bot
73+
message: '${{ github.ref }} failed tests: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'

.travis.yml

-56
This file was deleted.

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
zsh-syntax-highlighting [![Build Status][build-status-image]][build-status-travis]
1+
zsh-syntax-highlighting [![Build Status][build-status-image]][build-status]
22
=======================
33

44
**[Fish shell][fish]-like syntax highlighting for [Zsh][zsh].**
@@ -93,5 +93,5 @@ Syntax highlighting is done by pluggable highlighter scripts. See the
9393
[documentation on highlighters](docs/highlighters.md) for details and
9494
configuration settings.
9595

96-
[build-status-image]: https://travis-ci.org/zsh-users/zsh-syntax-highlighting.svg?branch=master
97-
[build-status-travis]: https://travis-ci.org/zsh-users/zsh-syntax-highlighting
96+
[build-status]: https://github.com/zsh-users/zsh-syntax-highlighting/actions
97+
[build-status-image]: https://github.com/zsh-users/zsh-syntax-highlighting/workflows/Tests/badge.svg

release.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- Check open issues and outstanding pull requests
66
- Confirm `make test` passes
77
- check with multiple zsh versions
8-
(easiest to check travis: https://travis-ci.org/zsh-users/zsh-syntax-highlighting/)
8+
(easiest to check GitHub Actions: https://github.com/zsh-users/zsh-syntax-highlighting/actions)
99
- Update changelog.md
1010
`tig --abbrev=12 --abbrev-commit 0.4.1..upstream/master`
1111
- Make sure there are no local commits and that `git status` is clean;

0 commit comments

Comments
 (0)