diff --git a/.github/workflows/compile-and-test.yml b/.github/workflows/compile-and-test.yml new file mode 100644 index 00000000..11d3689b --- /dev/null +++ b/.github/workflows/compile-and-test.yml @@ -0,0 +1,36 @@ +name: Compile and test the code + +on: + push: + branches: + - * + pull_request: + branches: + - main + - dev + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x] + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm install + + - name: Compile code + run: npm run build + +# - name: Run tests +# run: npm run test