From 14199d908e5eff9519e5916d1682339d1d550082 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Mon, 13 Jan 2020 15:40:46 -0800 Subject: [PATCH 1/4] First stab at GitHub Actions workflow --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..206b36b9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + + - uses: leafo/gh-actions-lua@v5 + with: + luaVersion: "5.1" + + - uses: leafo/gh-actions-luarocks@v2 + + - name: Install dependencies + run: | + luarocks install luafilesystem + luarocks install busted + luarocks install luacov + luarocks install luacov-coveralls + luarocks install luacheck + + - name: Test + run: | + lua -lluacov bin/spec.lua + luacheck src benchmarks examples + + - name: Report coverage + run: luacov-coveralls \ No newline at end of file From dd3f787924253990e62aaf91c49315b62bb810f5 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Mon, 13 Jan 2020 15:45:07 -0800 Subject: [PATCH 2/4] Submodules please --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 206b36b9..fcef8036 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,8 @@ jobs: steps: - uses: actions/checkout@v1 + with: + submodules: true - uses: leafo/gh-actions-lua@v5 with: From 6be72a6a7733e9869ff1ad97598c5a55254087d2 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Mon, 13 Jan 2020 15:49:24 -0800 Subject: [PATCH 3/4] Different coverage reporting --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fcef8036..af82f00f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,5 +30,8 @@ jobs: lua -lluacov bin/spec.lua luacheck src benchmarks examples - - name: Report coverage - run: luacov-coveralls \ No newline at end of file + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: "luacov.stats.out" \ No newline at end of file From 125c56378d940dbc7b9a93adcf8cc5667d53d322 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Mon, 13 Jan 2020 15:53:06 -0800 Subject: [PATCH 4/4] Use luacov-coveralls master --- .github/workflows/ci.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af82f00f..245f9f8b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: luarocks install luafilesystem luarocks install busted luarocks install luacov - luarocks install luacov-coveralls + luarocks install luacov-coveralls --server=http://rocks.moonscript.org/dev luarocks install luacheck - name: Test @@ -30,8 +30,5 @@ jobs: lua -lluacov bin/spec.lua luacheck src benchmarks examples - - name: Coveralls - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: "luacov.stats.out" \ No newline at end of file + - name: Report to Coveralls + run: luacov-coveralls \ No newline at end of file