From a9cf0b6cdaf0183384d26ec9c2f1f3b7e3160834 Mon Sep 17 00:00:00 2001 From: Tom French Date: Sun, 29 May 2022 18:51:46 +0100 Subject: [PATCH] ci: build api and web packages in CI --- .github/workflows/build.yml | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..21a68e9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,52 @@ +name: Build + +env: + CI: true + +on: + push: + branches: + - master + pull_request: + branches: '*' + +jobs: + api: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Cache + uses: actions/cache@v2 + id: cache + with: + path: '**/node_modules' + key: yarn-v1-${{ hashFiles('**/yarn.lock') }} + - name: Install + run: yarn --immutable + if: steps.cache.outputs.cache-hit != 'true' + - name: Build API + run: cd packages/loot-core && yarn build:api + + web: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Cache + uses: actions/cache@v2 + id: cache + with: + path: '**/node_modules' + key: yarn-v1-${{ hashFiles('**/yarn.lock') }} + - name: Install + run: yarn --immutable + if: steps.cache.outputs.cache-hit != 'true' + - name: Build Web + run: ./bin/package-browser