mirror of
https://github.com/jimeh/tmux-themepack.git
synced 2026-02-19 11:16:43 +00:00
ci: Setup GitHub Actions to run unit tests
This commit is contained in:
34
.github/workflows/ci.yml
vendored
Normal file
34
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: CI
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
tmux_version:
|
||||
- "2.6"
|
||||
- "2.7"
|
||||
- "2.8"
|
||||
- "2.9a"
|
||||
- "3.0a"
|
||||
steps:
|
||||
- name: Set up Go 1.13
|
||||
uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: 1.13
|
||||
- name: Check out the code
|
||||
uses: actions/checkout@v1
|
||||
- name: Install Tmux ${{ matrix.tmux_version }}
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y bc build-essential libevent-dev libncurses5-dev
|
||||
wget https://github.com/tmux/tmux/releases/download/${{ matrix.tmux_version }}/tmux-${{ matrix.tmux_version }}.tar.gz
|
||||
tar -zxf tmux-${{ matrix.tmux_version }}.tar.gz
|
||||
cd tmux-${{ matrix.tmux_version }}
|
||||
./configure && make && sudo make install
|
||||
cd ..
|
||||
- name: Run all tests
|
||||
run: make test
|
||||
Reference in New Issue
Block a user