Skip to content

Commit 3a607b1

Browse files
committed
ci: fix release-please config refs and test branch triggers
- Add config-file and manifest-file to release-please.yml - Add main branch to test.yml push/PR triggers - Fix manifest version to 1.3.0 matching latest tag - Add Run Tests CI badge to README
1 parent 05ba45f commit 3a607b1

4 files changed

Lines changed: 35 additions & 30 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
".": "0.1.0"
2+
".": "1.3.0"
33
}
44

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
1-
on:
2-
push:
3-
branches:
4-
- master
5-
6-
permissions:
7-
issues: write
8-
contents: write
9-
pull-requests: write
10-
11-
name: release-please
12-
13-
jobs:
14-
release-please:
15-
runs-on: ubuntu-latest
16-
steps:
17-
- uses: googleapis/release-please-action@v4
18-
with:
19-
# this assumes that you have created a personal access token
20-
# (PAT) and configured it as a GitHub action secret named
21-
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
22-
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
23-
# this is a built-in strategy in release-please, see "Action Inputs"
24-
# for more options
25-
release-type: simple
1+
on:
2+
push:
3+
branches:
4+
- master
5+
6+
permissions:
7+
issues: write
8+
contents: write
9+
pull-requests: write
10+
11+
name: release-please
12+
13+
jobs:
14+
release-please:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: googleapis/release-please-action@v4
18+
with:
19+
# this assumes that you have created a personal access token
20+
# (PAT) and configured it as a GitHub action secret named
21+
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
22+
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
23+
# this is a built-in strategy in release-please, see "Action Inputs"
24+
# for more options
25+
config-file: .github/release-please-config.json
26+
manifest-file: .github/release-please-manifest.json
27+

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ name: Run Tests
33
on:
44
push:
55
branches:
6+
- main
67
- master
78
pull_request:
89
branches:
10+
- main
911
- master
1012
workflow_dispatch:
1113

@@ -29,18 +31,18 @@ jobs:
2931
neovim: true
3032
version: ${{ matrix.nvim-version }}
3133

32-
- name: Install ripgrep (Ubuntu)
34+
- name: Install dependencies (ubuntu)
3335
if: runner.os == 'Linux'
3436
run: |
3537
sudo apt-get update
3638
sudo apt-get install -y ripgrep curl
3739
38-
- name: Install ripgrep (macOS)
40+
- name: Install dependencies (macos)
3941
if: runner.os == 'macOS'
4042
run: |
4143
brew install ripgrep curl
4244
43-
- name: Install ripgrep (Windows)
45+
- name: Install dependencies (windows)
4446
if: runner.os == 'Windows'
4547
run: |
4648
choco install ripgrep curl
@@ -49,7 +51,7 @@ jobs:
4951
uses: actions/cache@v4
5052
with:
5153
path: test/.deps
52-
key: test-deps-${{ runner.os }}-luaunit-job
54+
key: test-deps-luaunit-job-${{ runner.os }}
5355

5456
- name: Run tests
5557
run: make test

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
> _flygrep.nvim_ is a plugin to search text in neovim floating window asynchronously
44
5+
[![Run Tests](https://github.com/wsdjeg/flygrep.nvim/actions/workflows/test.yml/badge.svg)](https://github.com/wsdjeg/flygrep.nvim/actions/workflows/test.yml)
56
[![GitHub License](https://img.shields.io/github/license/wsdjeg/flygrep.nvim)](LICENSE)
67
[![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/wsdjeg/flygrep.nvim)](https://github.com/wsdjeg/flygrep.nvim/issues)
78
[![GitHub commit activity](https://img.shields.io/github.qkg1.topmit-activity/m/wsdjeg/flygrep.nvim)](https://github.com/wsdjeg/flygrep.nvim/commits/master/)

0 commit comments

Comments
 (0)