Skip to content

Commit

Permalink
#8516 Create github test actions (#40) (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz authored Oct 4, 2022
1 parent 7154bdf commit 009dfb2
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This workflow will run tests for npm and java

name: checks

on:
push:
branches:
- master
# using filter pattern: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
- '[cC][0-9][0-9][0-9]-+**' # c123 or c123-something for custom branch
- '[0-9][0-9][0-9][0-9].[0-9][0-9].xx' # stable brances. E.g. 2021.01.xx
pull_request:
branches:
- master
# using filter pattern: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
- '[cC][0-9][0-9][0-9]-+**' # c123 or c123-something for custom branch
- '[0-9][0-9][0-9][0-9].[0-9][0-9].xx' # stable brances. E.g. 2021.01.xx

jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: "checking out"
uses: actions/checkout@v2
- name: "Checkout submodules"
run: git submodule update --init --recursive

- name: "setting up npm"
uses: actions/setup-node@v2
with:
node-version: '12.x'

###############
# NPM CHECKS
#############
- name: npm install
run: npm install

- name: ESlint
run: npm run lint

- name: Unit Tests
run: npm test -- --reporters mocha,coverage,coveralls

- name: build
run: npm run ext:build

- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
name: Artifacts
path: dist/SampleExtension.zip
retention-days: 5

0 comments on commit 009dfb2

Please sign in to comment.