diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fabe194 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI tests + +on: + workflow_dispatch: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + ci-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: ⎔ Setup node + uses: actions/setup-node@v4 + with: + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' + - name: ⎔ Cache node_modules + uses: actions/cache@v3 + env: + cache-name: node_modules-20x + with: + path: node_modules + key: ${{ runner.os }}-build-${{ env.cache-name }} + - name: 📥 Download deps + run: yarn install --frozen-lockfile + - name: ⎔ Build package + run: yarn build