From a574a74042e63458d1548034a66045a926bbc57e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Thu, 24 Oct 2019 00:18:28 +0200 Subject: [PATCH 1/3] Add CI via Actions --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..20eec0e0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: CI +on: [push] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + native_ext: ['', '1'] + os: [ubuntu-latest, macOS-latest] + + steps: + - uses: actions/checkout@v1 + - name: Install bats + run: git clone --depth 1 https://github.com/sstephenson/bats.git + - name: Run tests + env: + RBENV_NATIVE_EXT: ${{ matrix.native_ext }} + run: PATH="./bats/bin:$PATH" test/run From cc9726c641371474131f622bd5fed77120340a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Thu, 24 Oct 2019 00:21:38 +0200 Subject: [PATCH 2/3] Delete .travis.yml --- .travis.yml | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index acc69ef2..00000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -sudo: false -install: git clone --depth 1 https://github.com/sstephenson/bats.git -script: PATH="./bats/bin:$PATH" test/run -language: c -env: - - RBENV_NATIVE_EXT= - - RBENV_NATIVE_EXT=1 From 8bb5b1607e3eee4265c9e90a6ad3915e53248112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Thu, 24 Oct 2019 00:24:37 +0200 Subject: [PATCH 3/3] Bump Homebrew formula on tagged release --- .github/workflows/release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..0fb735a2 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,16 @@ +name: Release +on: + push: + tags: 'v*' + +jobs: + homebrew: + name: Bump Homebrew formula + runs-on: ubuntu-latest + steps: + - uses: mislav/bump-homebrew-formula-action@v1.4 + if: "!contains(github.ref, '-')" # skip prereleases + with: + formula-name: rbenv + env: + COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}