Skip to content

Commit

Permalink
add ci settings
Browse files Browse the repository at this point in the history
  • Loading branch information
goccy committed Aug 17, 2023
1 parent e716ce0 commit 8a948a2
Show file tree
Hide file tree
Showing 6 changed files with 155 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

** Related Components **
- [ ] protoc-gen-grpc-federation
- [ ] grpc-federation-linter
- [ ] grpc-federation-language-server
- [ ] others

**To Reproduce**
Steps to reproduce the behavior.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
3 changes: 3 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## NOTE

Currently, we do not accept pull requests from anyone other than the development team. Please report feature addition requests or bug fix requests via [Issues](https://github.com/kouzoh/grpc-federation/issues).
22 changes: 22 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: lint
on:
push:
branches:
- main
pull_request:
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: checkout
uses: actions/checkout@v3
- name: install tools
run: make tools
- name: build tools
run: make build
- name: run lint
run: make lint
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: release
on:
push:
tags:
- "v*.*.*"

jobs:
publish:
name: release vscode extension
runs-on: ubuntu-latest
steps:
- name: install npx
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y npm nodejs
sudo npm -g install n
sudo n stable
- name: checkout
uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: extract version from tags
id: meta
run: |
echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: build extension
run: |
make build/vscode-extension
env:
VERSION: ${{ steps.meta.outputs.VERSION }}
- name: move built extension to publish directory
run: |
mkdir assets
mv ./lsp/client/vscode/grpc-federation-*.vsix assets/
- name: release
uses: softprops/action-gh-release@v1
with:
draft: true
generate_release_notes: true
fail_on_unmatched_files: true
files: |
./assets/*
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: test
on:
push:
branches:
- main
pull_request:
jobs:
build_and_generate:
name: build and generate
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: checkout
uses: actions/checkout@v3
- name: install tools
run: make tools
- name: build plugin
run: make build
- name: generate files
run: make generate
- name: check diff
run: git diff --exit-code
test:
name: test
runs-on: ubuntu-latest
steps:
- name: setup go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: checkout
uses: actions/checkout@v3
- name: install tools
run: make tools
- name: run test
run: make test

0 comments on commit 8a948a2

Please sign in to comment.