Skip to content

Commit

Permalink
☕ Fix CI to support Codecov v4
Browse files Browse the repository at this point in the history
Not sure but it seems that the target repository must be checked out to the root directory.
Otherwise codecov-action@v4 fails with "Service not found: none" error.

https://github.com/codecov/codecov-action/issues/1253
  • Loading branch information
lambdalisue committed Feb 3, 2024
1 parent ac720d9 commit 50640ad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 19 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,13 @@ jobs:
- run: git config --global core.autocrlf false
if: runner.os == 'Windows'
- uses: actions/checkout@v4
with:
path: "./repo"
- uses: actions/checkout@v4
with:
repository: "vim-denops/denops.vim"
path: "./denops.vim"
path: ".deps/denops.vim"
- uses: denoland/setup-deno@v1.1.4
with:
deno-version: "${{ matrix.version }}"
- uses: actions/cache@v4
with:
key: deno-${{ hashFiles('**/*') }}
restore-keys: deno-
path: |
/home/runner/.cache/deno/deps/https/deno.land
- uses: rhysd/action-setup-vim@v1
id: vim
with:
Expand All @@ -104,23 +96,17 @@ jobs:
${DENOPS_TEST_NVIM} --version
env:
DENOPS_TEST_NVIM: ${{ steps.nvim.outputs.executable }}
- name: Cache
run: deno cache ./**/*.ts
working-directory: ./repo
- name: Test
run: deno task test:coverage
env:
DENOPS_TEST_DENOPS_PATH: "../denops.vim"
DENOPS_TEST_DENOPS_PATH: ".deps/denops.vim"
DENOPS_TEST_VIM_EXECUTABLE: ${{ steps.vim.outputs.executable }}
DENOPS_TEST_NVIM_EXECUTABLE: ${{ steps.nvim.outputs.executable }}
working-directory: ./repo
timeout-minutes: 3
timeout-minutes: 5
- run: |
deno task coverage --lcov > coverage.lcov
working-directory: ./repo
- uses: codecov/codecov-action@v4
with:
os: ${{ runner.os }}
files: ./coverage.lcov
token: ${{ secrets.CODECOV_TOKEN }}
working-directory: ./repo
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/.tools
/.deps
/.coverage
/docs
deno.lock
Expand Down
6 changes: 5 additions & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"lock": false,
"exclude": ["docs/**"],
"exclude": [
"docs/**",
".deps/**",
".coverage/**"
],
"imports": {
"https://deno.land/x/denops_std@$MODULE_VERSION/": "./"
},
Expand Down

0 comments on commit 50640ad

Please sign in to comment.