From caee352d9ddf541f0a3347322bbaa47de16dd394 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Wed, 8 Sep 2021 20:12:11 +0100 Subject: [PATCH] :kaaba: Updates issues for building/ checking app after PR --- .github/workflows/build-app.yml | 24 ++++++++++++++++++++++++ .github/workflows/code-linter.yml | 21 +++++++++++++++++++++ .github/workflows/code-spell-check.yml | 23 +++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 .github/workflows/build-app.yml create mode 100644 .github/workflows/code-linter.yml create mode 100644 .github/workflows/code-spell-check.yml diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml new file mode 100644 index 00000000..25d65190 --- /dev/null +++ b/.github/workflows/build-app.yml @@ -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 + diff --git a/.github/workflows/code-linter.yml b/.github/workflows/code-linter.yml new file mode 100644 index 00000000..d5be4189 --- /dev/null +++ b/.github/workflows/code-linter.yml @@ -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 }} diff --git a/.github/workflows/code-spell-check.yml b/.github/workflows/code-spell-check.yml new file mode 100644 index 00000000..dbd8b26c --- /dev/null +++ b/.github/workflows/code-spell-check.yml @@ -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 + author: Liss-Bot + delete-branch: true + assignees: Lissy93 + reviewers: Lissy93 \ No newline at end of file