Skip to content

Scheduling infrastructure for absolutely everyone.

Create ci.yml

zomars46cd74b0b879
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000000..0055ab3ae15
--- /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