diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..dfaef31 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,37 @@ +name: test + +on: + workflow_dispatch: + pull_request: + branches: + - main + +concurrency: + group: test-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +env: + LANG: en_US.UTF-8 + +jobs: + build-ios: + runs-on: ubuntu-latest + + steps: + - name: Check out Git repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'yarn' + + - name: Install dependencies + run: yarn install --immutable + + - name: Build + run: yarn build + + - name: Test + run: yarn test