Skip to content

Commit

Permalink
Merge pull request #10 from fwcd/gh-actions
Browse files Browse the repository at this point in the history
Migrate CI to GitHub Actions
  • Loading branch information
fwcd authored Dec 27, 2020
2 parents d98e200 + 0cc49a9 commit 09e92d0
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 12 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build
on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['12']
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm install
- name: Compile grammar
run: npm run generate
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy
on:
push:
tags:
- '*'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '12'
- name: Install dependencies
run: npm install
- name: Compile grammar
run: npm run generate
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Kotlin Grammar for Tree-Sitter

[![Build Status](https://travis-ci.org/fwcd/tree-sitter-kotlin.svg?branch=master)](https://travis-ci.org/fwcd/tree-sitter-kotlin)
[![Build](https://github.com/fwcd/tree-sitter-kotlin/workflows/Build/badge.svg)](https://github.com/fwcd/tree-sitter-kotlin/actions)

[Kotlin](https://kotlinlang.org) language grammar for [Tree-Sitter](http://tree-sitter.github.io/tree-sitter/).

Expand Down

0 comments on commit 09e92d0

Please sign in to comment.