From 56933882cb237777ab70aa22e936d751ecde4ae4 Mon Sep 17 00:00:00 2001 From: Hans Date: Wed, 24 Apr 2024 11:55:00 +0800 Subject: [PATCH] Setup CI --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a6086e8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: CI +on: push + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4.0.2 + with: + node-version: 20 + cache: 'yarn' + - name: node_modules cache + uses: actions/cache@v4.0.2 + with: + path: node_modules + key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }} + - run: yarn install + - run: yarn build-native + - run: yarn test