Added new metadata fields for all type of elections #1007
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test-Bundle | |
on: | |
workflow_call: | |
inputs: | |
run: | |
description: "Forces a run if true" | |
required: false | |
type: boolean | |
push: | |
branches: | |
- main | |
pull_request: ~ | |
jobs: | |
build: | |
if: ${{ github.actor != 'arabot-1' || inputs.run }} | |
name: Check bundle exports/imports | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
example: [cjs, esm, umd] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install deps | |
run: yarn | |
- name: Build | |
run: yarn build | |
- name: Create tarball for importing in bundle checks | |
run: yarn pack --filename sdk-bundle-tests.tgz | |
- name: Install sdk-bundle-tests.tgz | |
working-directory: test/bundle/${{ matrix.example }} | |
run: yarn add ../../../sdk-bundle-tests.tgz | |
- name: Run yarn install ${{ matrix.example }} | |
working-directory: test/bundle/${{ matrix.example }} | |
run: yarn | |
- name: Check ${{ matrix.example }} imports | |
working-directory: test/bundle/${{ matrix.example }} | |
run: yarn check:import |