Update Prettier scripts and supported files (#402)

This commit is contained in:
Lipis 2020-01-16 23:50:02 +02:00 committed by GitHub
parent 03e4a70be2
commit 86eadf379d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 202 additions and 128 deletions

View file

@ -8,17 +8,17 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v1
- name: Build
run: |
npm ci
npm run build
- name: Build
run: |
npm ci
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.GH_DEPLOY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{secrets.GH_DEPLOY}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
BRANCH: gh-pages
FOLDER: build

22
.github/workflows/lint.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: Node CI
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install and lint
run: |
npm ci
npm run test:code
env:
CI: true

View file

@ -1,23 +0,0 @@
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install and test
run: |
npm ci
npm test
env:
CI: true

22
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: Node CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install and test
run: |
npm ci
npm run test:app
env:
CI: true