| ... | ... |
@@ -11,7 +11,7 @@ jobs: |
| 11 | 11 |
os: [ubuntu-latest, macOS-latest] |
| 12 | 12 |
runs-on: ${{ matrix.os }}
|
| 13 | 13 |
steps: |
| 14 |
- - uses: actions/checkout@v2 |
|
| 14 |
+ - uses: actions/checkout@v4 |
|
| 15 | 15 |
- name: Compile and run tests |
| 16 | 16 |
run: make && make test |
| 17 | 17 |
env: |
| ... | ... |
@@ -21,7 +21,7 @@ jobs: |
| 21 | 21 |
runs-on: ubuntu-latest |
| 22 | 22 |
container: docker://alpine |
| 23 | 23 |
steps: |
| 24 |
- - uses: actions/checkout@v2 |
|
| 24 |
+ - uses: actions/checkout@v4 |
|
| 25 | 25 |
- name: Install build dependencies |
| 26 | 26 |
run: apk add build-base |
| 27 | 27 |
- name: Compile and run tests |
| ... | ... |
@@ -31,15 +31,15 @@ jobs: |
| 31 | 31 |
strategy: |
| 32 | 32 |
matrix: |
| 33 | 33 |
arch: [armv7, aarch64, s390x, ppc64le] |
| 34 |
- runs-on: ubuntu-20.04 |
|
| 34 |
+ runs-on: ubuntu-22.04 |
|
| 35 | 35 |
steps: |
| 36 |
- - uses: actions/checkout@v2 |
|
| 37 |
- - uses: uraimo/run-on-arch-action@v2.0.5 |
|
| 36 |
+ - uses: actions/checkout@v4 |
|
| 37 |
+ - uses: uraimo/run-on-arch-action@v3.0.1 |
|
| 38 | 38 |
name: Compile and run tests |
| 39 | 39 |
id: test |
| 40 | 40 |
with: |
| 41 | 41 |
arch: ${{ matrix.arch }}
|
| 42 |
- distro: ubuntu20.04 |
|
| 42 |
+ distro: ubuntu22.04 |
|
| 43 | 43 |
githubToken: ${{ github.token }}
|
| 44 | 44 |
install: | |
| 45 | 45 |
apt-get update -q -y |
| ... | ... |
@@ -50,7 +50,7 @@ jobs: |
| 50 | 50 |
name: Acceptance Tests |
| 51 | 51 |
runs-on: ubuntu-latest |
| 52 | 52 |
steps: |
| 53 |
- - uses: actions/checkout@v2 |
|
| 53 |
+ - uses: actions/checkout@v4 |
|
| 54 | 54 |
- name: Set up Ruby |
| 55 | 55 |
uses: ruby/setup-ruby@v1 |
| 56 | 56 |
with: |
| ... | ... |
@@ -51,14 +51,14 @@ jobs: |
| 51 | 51 |
runs-on: ubuntu-latest |
| 52 | 52 |
steps: |
| 53 | 53 |
- uses: actions/checkout@v2 |
| 54 |
- - name: Set up Ruby 2.6 |
|
| 55 |
- uses: actions/setup-ruby@v1 |
|
| 54 |
+ - name: Set up Ruby |
|
| 55 |
+ uses: ruby/setup-ruby@v1 |
|
| 56 | 56 |
with: |
| 57 |
- ruby-version: 2.6.x |
|
| 58 |
- - name: Install dependencies and compile |
|
| 57 |
+ ruby-version: '3.4' |
|
| 58 |
+ bundler-cache: true |
|
| 59 |
+ working-directory: test/acceptance |
|
| 60 |
+ - name: Compile fzy |
|
| 59 | 61 |
run: | |
| 60 |
- gem install bundler |
|
| 61 | 62 |
make |
| 62 |
- cd test/acceptance && bundle install --jobs 4 --retry 3 |
|
| 63 | 63 |
- name: Run acceptance tests |
| 64 | 64 |
run: make acceptance |
| ... | ... |
@@ -11,7 +11,7 @@ jobs: |
| 11 | 11 |
os: [ubuntu-latest, macOS-latest] |
| 12 | 12 |
runs-on: ${{ matrix.os }}
|
| 13 | 13 |
steps: |
| 14 |
- - uses: actions/checkout@v1 |
|
| 14 |
+ - uses: actions/checkout@v2 |
|
| 15 | 15 |
- name: Compile and run tests |
| 16 | 16 |
run: make && make test |
| 17 | 17 |
env: |
| ... | ... |
@@ -21,16 +21,36 @@ jobs: |
| 21 | 21 |
runs-on: ubuntu-latest |
| 22 | 22 |
container: docker://alpine |
| 23 | 23 |
steps: |
| 24 |
- - uses: actions/checkout@v1 |
|
| 24 |
+ - uses: actions/checkout@v2 |
|
| 25 | 25 |
- name: Install build dependencies |
| 26 | 26 |
run: apk add build-base |
| 27 | 27 |
- name: Compile and run tests |
| 28 | 28 |
run: make && make test |
| 29 |
+ multiarch_test: |
|
| 30 |
+ name: Test on ${{ matrix.arch }}
|
|
| 31 |
+ strategy: |
|
| 32 |
+ matrix: |
|
| 33 |
+ arch: [armv7, aarch64, s390x, ppc64le] |
|
| 34 |
+ runs-on: ubuntu-20.04 |
|
| 35 |
+ steps: |
|
| 36 |
+ - uses: actions/checkout@v2 |
|
| 37 |
+ - uses: uraimo/run-on-arch-action@v2.0.5 |
|
| 38 |
+ name: Compile and run tests |
|
| 39 |
+ id: test |
|
| 40 |
+ with: |
|
| 41 |
+ arch: ${{ matrix.arch }}
|
|
| 42 |
+ distro: ubuntu20.04 |
|
| 43 |
+ githubToken: ${{ github.token }}
|
|
| 44 |
+ install: | |
|
| 45 |
+ apt-get update -q -y |
|
| 46 |
+ apt-get install -y gcc make |
|
| 47 |
+ rm -rf /var/lib/apt/lists/* |
|
| 48 |
+ run: make && make test |
|
| 29 | 49 |
acceptance_test: |
| 30 | 50 |
name: Acceptance Tests |
| 31 | 51 |
runs-on: ubuntu-latest |
| 32 | 52 |
steps: |
| 33 |
- - uses: actions/checkout@v1 |
|
| 53 |
+ - uses: actions/checkout@v2 |
|
| 34 | 54 |
- name: Set up Ruby 2.6 |
| 35 | 55 |
uses: actions/setup-ruby@v1 |
| 36 | 56 |
with: |
| ... | ... |
@@ -1,12 +1,6 @@ |
| 1 | 1 |
name: CI |
| 2 | 2 |
|
| 3 |
-on: |
|
| 4 |
- push: |
|
| 5 |
- branches: |
|
| 6 |
- - master |
|
| 7 |
- pull_request: |
|
| 8 |
- branches: |
|
| 9 |
- - master |
|
| 3 |
+on: [push, pull_request] |
|
| 10 | 4 |
|
| 11 | 5 |
jobs: |
| 12 | 6 |
test: |
| ... | ... |
@@ -25,12 +19,13 @@ jobs: |
| 25 | 19 |
test_alpine: |
| 26 | 20 |
name: Test on Alpine Linux |
| 27 | 21 |
runs-on: ubuntu-latest |
| 22 |
+ container: docker://alpine |
|
| 28 | 23 |
steps: |
| 29 | 24 |
- uses: actions/checkout@v1 |
| 25 |
+ - name: Install build dependencies |
|
| 26 |
+ run: apk add build-base |
|
| 30 | 27 |
- name: Compile and run tests |
| 31 |
- uses: docker://alpine |
|
| 32 |
- with: |
|
| 33 |
- args: sh -c "apk add build-base && make && make test" |
|
| 28 |
+ run: make && make test |
|
| 34 | 29 |
acceptance_test: |
| 35 | 30 |
name: Acceptance Tests |
| 36 | 31 |
runs-on: ubuntu-latest |
This way we are testing against musl
| ... | ... |
@@ -22,6 +22,15 @@ jobs: |
| 22 | 22 |
run: make && make test |
| 23 | 23 |
env: |
| 24 | 24 |
CC: ${{ matrix.compiler }}
|
| 25 |
+ test_alpine: |
|
| 26 |
+ name: Test on Alpine Linux |
|
| 27 |
+ runs-on: ubuntu-latest |
|
| 28 |
+ steps: |
|
| 29 |
+ - uses: actions/checkout@v1 |
|
| 30 |
+ - name: Compile and run tests |
|
| 31 |
+ uses: docker://alpine |
|
| 32 |
+ with: |
|
| 33 |
+ args: sh -c "apk add build-base && make && make test" |
|
| 25 | 34 |
acceptance_test: |
| 26 | 35 |
name: Acceptance Tests |
| 27 | 36 |
runs-on: ubuntu-latest |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,40 @@ |
| 1 |
+name: CI |
|
| 2 |
+ |
|
| 3 |
+on: |
|
| 4 |
+ push: |
|
| 5 |
+ branches: |
|
| 6 |
+ - master |
|
| 7 |
+ pull_request: |
|
| 8 |
+ branches: |
|
| 9 |
+ - master |
|
| 10 |
+ |
|
| 11 |
+jobs: |
|
| 12 |
+ test: |
|
| 13 |
+ name: Test ${{ matrix.compiler }} on ${{ matrix.os }}
|
|
| 14 |
+ strategy: |
|
| 15 |
+ matrix: |
|
| 16 |
+ compiler: [gcc, clang] |
|
| 17 |
+ os: [ubuntu-latest, macOS-latest] |
|
| 18 |
+ runs-on: ${{ matrix.os }}
|
|
| 19 |
+ steps: |
|
| 20 |
+ - uses: actions/checkout@v1 |
|
| 21 |
+ - name: Compile and run tests |
|
| 22 |
+ run: make && make test |
|
| 23 |
+ env: |
|
| 24 |
+ CC: ${{ matrix.compiler }}
|
|
| 25 |
+ acceptance_test: |
|
| 26 |
+ name: Acceptance Tests |
|
| 27 |
+ runs-on: ubuntu-latest |
|
| 28 |
+ steps: |
|
| 29 |
+ - uses: actions/checkout@v1 |
|
| 30 |
+ - name: Set up Ruby 2.6 |
|
| 31 |
+ uses: actions/setup-ruby@v1 |
|
| 32 |
+ with: |
|
| 33 |
+ ruby-version: 2.6.x |
|
| 34 |
+ - name: Install dependencies and compile |
|
| 35 |
+ run: | |
|
| 36 |
+ gem install bundler |
|
| 37 |
+ make |
|
| 38 |
+ cd test/acceptance && bundle install --jobs 4 --retry 3 |
|
| 39 |
+ - name: Run acceptance tests |
|
| 40 |
+ run: make acceptance |