From 87b4fb38358226ebe6b76b2fed4e10fc165ce593 Mon Sep 17 00:00:00 2001 From: Arthur Arakelyan <71519856+ArthurArakelyan@users.noreply.github.com> Date: Fri, 5 Jan 2024 22:25:59 +0300 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..398fd0d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +name: CI +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [ 18.x ] + steps: + - uses: actions/checkout@v3 + - name: Starting Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - name: Install node modules + run: yarn install + - name: Run lint checks + run: yarn lint + - name: Run tests + run: yarn test + - name: Build + run: yarn build