diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a3cda21 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: ci +on: + pull_request: + push: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: hmarr/debug-action@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + cache: yarn + node-version-file: '.nvmrc' + - name: Install packages + run: yarn --immutable + - name: Build library + run: yarn build + unit: + runs-on: ubuntu-latest + steps: + - uses: hmarr/debug-action@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + cache: yarn + node-version-file: '.nvmrc' + - name: Install packages + run: yarn --immutable + - name: Jest + run: yarn test diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..958b5a3 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v14