Skip to content

Commit 18d130c

Browse files
author
Evgenii Khramkov
authored
Merge pull request #618 from github/ewgenius/github-actions-ci
Setup GH action
2 parents b774394 + 110378f commit 18d130c

File tree

3 files changed

+56
-31
lines changed

3 files changed

+56
-31
lines changed

.github/workflows/lint.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Lint Code Base
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- 'master'
7+
8+
jobs:
9+
build:
10+
name: Lint Code Base
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Code
14+
uses: actions/checkout@v2
15+
- name: Lint Code Base
16+
uses: docker://github/super-linter:v2.1.1
17+
env:
18+
VALIDATE_ALL_CODEBASE: false

.github/workflows/main.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test and build
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
strategy:
8+
matrix:
9+
os: ['ubuntu-latest', 'macos-latest']
10+
# os: ['ubuntu-20.04', 'ubuntu-18.04', 'ubuntu-16.04', 'macos-latest']
11+
fail-fast: false
12+
runs-on: ${{ matrix.os }}
13+
14+
steps:
15+
- name: Install Dependencies (Linux)
16+
run: |
17+
sudo apt-get update -y
18+
sudo apt-get install -y devscripts debhelper moreutils fakeroot jq pigz
19+
wget "https://storage.googleapis.com/shellcheck/shellcheck-v0.7.0.linux.x86_64.tar.xz"
20+
tar --xz -xvf "shellcheck-v0.7.0.linux.x86_64.tar.xz"
21+
sudo cp shellcheck-v0.7.0/shellcheck /usr/bin/shellcheck
22+
if: matrix.os == 'ubuntu-latest'
23+
- name: Install Dependencies (macOS)
24+
run: |
25+
brew install gnu-tar shellcheck jq pigz coreutils gnu-sed gnu-getopt
26+
brew unlink parallel
27+
brew install moreutils gawk
28+
if: matrix.os == 'macos-latest'
29+
- name: Get Sources
30+
uses: actions/checkout@v2
31+
- name: Test
32+
run: |
33+
export PATH="$PATH:/snap/bin"
34+
make test
35+
shell: bash
36+
- name: Build (Linux)
37+
run: DEB_BUILD_OPTIONS=nocheck debuild -us -uc
38+
if: matrix.os == 'ubuntu-latest'

.travis.yml

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

0 commit comments

Comments
 (0)