Skip to content

Commit

Permalink
feat: support parse map (#47)
Browse files Browse the repository at this point in the history
* feat: support parse map

* fix: do not lint on pull request
  • Loading branch information
belitre authored Mar 23, 2022
1 parent bed9e8a commit 5e65710
Show file tree
Hide file tree
Showing 8 changed files with 10,900 additions and 5,511 deletions.
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: monthly
open-pull-requests-limit: 0
- package-ecosystem: npm
directory: '/'
schedule:
interval: monthly
open-pull-requests-limit: 0
- package-ecosystem: github-actions
directory: '/'
schedule:
interval: monthly
open-pull-requests-limit: 0
22 changes: 22 additions & 0 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build and test

on: [pull_request]

jobs:
build:
name: build and test
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOLANG_VERSION: "1.17.7"
steps:
- name: checkout
uses: actions/checkout@v2

- uses: actions/setup-go@v2
with:
go-version: ${{ env.GOLANG_VERSION }}

- name: build and test
run: make build test

48 changes: 48 additions & 0 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Publish release

on:
push:
branches:
- main

concurrency:
group: avro-kedavro

jobs:
release:
name: Publish release
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOLANG_VERSION: "1.17.7"
NODE_VERSION: 14
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}

- uses: actions/cache@v2
id: node-cache
with:
path: node_modules
key: semantic-release-modules-${{ hashFiles('package-lock.json') }}

- name: Install Dependencies
if: steps.node-cache.outputs.cache-hit != 'true'
run: npm ci

- uses: actions/setup-go@v2
with:
go-version: ${{ env.GOLANG_VERSION }}

- name: release
id: release
run: make semantic-release-ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ vendor: tidy
@echo "vendor target..."
@go mod vendor

.PHONY: build
build: fmt
@echo "build target..."
@go build ./...

.PHONY: test
test: fmt lint
test: fmt
@echo "test target..."
@go test ./... -v -count=1

Expand Down
Loading

0 comments on commit 5e65710

Please sign in to comment.