diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..d9c5946e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Main Workflow + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm test + + - name: Lock threads + uses: dessant/lock-threads@v4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }}