From 46cd74b0b879ffe528d2e3f2f2776b120cad1962 Mon Sep 17 00:00:00 2001 From: zomars Date: Tue, 17 May 2022 13:40:12 -0600 Subject: [PATCH] Create ci.yml --- .github/workflows/ci.yml | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 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 0000000000..0055ab3ae1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +name: CI + +on: + push: + branches: ["main"] + pull_request: + types: [opened, synchronize] + +jobs: + build: + name: Build and Test + timeout-minutes: 15 + runs-on: ${{ matrix.os }} + # To use Remote Caching, uncomment the next lines and follow the steps below. + # env: + # TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + # TURBO_TEAM: ${{ secrets.TURBO_TEAM }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + + steps: + - name: Check out code + uses: actions/checkout@v2 + with: + fetch-depth: 2 + + - name: Setup Node.js environment + uses: actions/setup-node@v2 + with: + node-version: 16 + cache: "yarn" + + - name: Install dependencies + run: yarn + + - name: Build + run: yarn build + + - name: Test + run: yarn test