Skip to content

Commit

Permalink
Added GHA workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeUrban authored and Shaptic committed Sep 16, 2021
1 parent bc43bd1 commit 1b26e6d
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: npm publish
on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'

- name: Install Depencencies
run: yarn

- name: Build
run: yarn version

- name: Publish npm package
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34 changes: 34 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Tests

on:
push:
branches: [ v8.3.0 ]
pull_request:

jobs:
build_and_test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '10.16.3'

- name: Install Dependencies
run: yarn install

- name: Build
run: gulp

- name: Unit Tests
run: gulp test:unit

- name: Browser Tests
run: gulp test:browser

- name: Integration Tests
run: gulp test:integration

0 comments on commit 1b26e6d

Please sign in to comment.