🕋 Updates issues for building/ checking app after PR

This commit is contained in:
Alicia Sykes 2021-09-08 20:12:11 +01:00
parent bb25389a71
commit caee352d9d
3 changed files with 68 additions and 0 deletions

24
.github/workflows/build-app.yml vendored Normal file
View File

@ -0,0 +1,24 @@
# This action builds and deploys the master branch
name: Deploy demo of current version
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
- name: Install and Build 🔧
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: dev-demo
folder: dist

21
.github/workflows/code-linter.yml vendored Normal file
View File

@ -0,0 +1,21 @@
# Lints code merged into master branch
name: Lint Code Base
on:
push:
pull_request:
branches: [master]
jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

23
.github/workflows/code-spell-check.yml vendored Normal file
View File

@ -0,0 +1,23 @@
# Finds typos in the English language file, and submits a PR with fixes
name: Auto-Fix Spelling
on:
- push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: sobolevn/misspell-fixer-action@master
# with:
# options: '-rsvn src/assets/locales/en.json'
- uses: peter-evans/create-pull-request@v2.4.4
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
commit-message: ':pencil2: Auto-fix typos in translations file'
title: '[AUTO] Fix spelling in language file'
branch: AUTO/spelling-corrections
committer: Alicia Bot <alicia-gh-bot@mail.as93.net>
author: Liss-Bot
delete-branch: true
assignees: Lissy93
reviewers: Lissy93