diff --git a/.github/workflows/npm_publish.yml b/.github/workflows/npm_publish.yml new file mode 100644 index 000000000..7d35710b7 --- /dev/null +++ b/.github/workflows/npm_publish.yml @@ -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 }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 000000000..c7b71e34f --- /dev/null +++ b/.github/workflows/tests.yml @@ -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