diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..31d12f2 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,33 @@ +name: Tests + +on: + push: + branches: + - '*' +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: '16' # Use Node.js 16.x + + - name: Install pnpm + run: npm install -g pnpm + + - name: Changing Directory + run: cd nepalingo-web + + - name: Install dependencies + run: pnpm install + + - name: Lint code + run: pnpm run lint + + - name: Test Build + run: pnpm run build \ No newline at end of file