diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..61219d4 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: Run TypeScript Compiler + +on: + push: + branches: [ develop ] + pull_request: + branches: [ develop ] + +jobs: + lint: + runs-on: windows-latest + strategy: + matrix: + node-version: [18.18.2] + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: Install npm + run: npm install npm@9.8.1 -g + - name: Install dependencies + run: npm ci + - name: Run typescript compiler + run: npm run build --if-present diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index dbb048b..44e70be 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,26 +1,26 @@ -name: eslint +name: Run ESLint Linter on: push: - branches: [ main ] + branches: [ develop ] pull_request: - branches: [ main ] + branches: [ develop ] jobs: lint: runs-on: windows-latest strategy: matrix: - node-version: [16.20.2] + node-version: [18.18.2] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - - name: install npm - run: npm install npm@8.19.4 -g - - name: install dependencies + - name: Install npm + run: npm install npm@9.8.1 -g + - name: Install dependencies run: npm ci - - name: run lint - run: npm run lint + - name: Run lint + run: npm run lint --if-present