ci: github actions (#3442)

* feat: eslint action

* refactor: actions v2

* fix: set +x for entrypoint

* ci: integrate docs

* fix: give it a nice name

* ci: publish docs

* ci: fix yaml key error

* ci: fix executable

* ci: use normal sh shebang

* ci: move into the workspace

* ci: fix eslint path

* ci: manually run the build

* ci: use different container

* ci: install git

* ci: assume yes flag

* ci: use correct branch

* ci: fix branch and source

* ci: fix condition

* ci: remove useless steps

* ci: rename action

* ci: make executable again

* ci: cleanup

* ci: add stable branch

* ci: remove semi

* ci: do some logging for failing action

* ci: remove actions api

* ci: re-add semi

* ci: use actions repo

* ci: use v1 tags

* ci: remove semi

* chore: change job name passed to eslint

* chore: dummy commit, remove different semi

* ci: change job name

* chore: dummy commit

* ci: add gh-actions as possible branches

* ci: lint all branches

* ci: dummy

* ci: separate pr and push

* chore: run actions on gh branch

* ci: try excluding branches
This commit is contained in:
Crawl
2019-08-24 19:32:18 +02:00
committed by GitHub
parent c715ed9f8b
commit e8451561ed
5 changed files with 119 additions and 1 deletions

25
.github/workflows/docs.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: Docs
on:
push:
branches:
- '!gh-action'
- '!webpack'
- '!docs'
jobs:
docs:
name: deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: install node v12
uses: actions/setup-node@master
with:
node-version: 12
- name: npm install
run: npm install
- name: deploy docs
uses: ./.github/actions/docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

28
.github/workflows/lint.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: Lint
on:
push:
pull_request:
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install node v12
uses: actions/setup-node@v1
with:
node-version: 12
- name: npm install
run: npm install
- name: eslint
uses: discordjs/action-eslint@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
job-name: lint
- name: lint typings
run: npm run lint:typings
- name: lint docs
run: npm run docs:test