feat!: added option to send logs to elastic #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pull_request | |
on: [pull_request] | |
jobs: | |
eslint: | |
name: Run TS Project eslint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out TS Project Git repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install TS Project dependencies | |
run: npm install | |
- name: Run TS Project linters | |
uses: wearerequired/lint-action@v1 | |
with: | |
github_token: ${{ secrets.github_token }} | |
# Enable linters | |
eslint: true | |
prettier: true | |
eslint_extensions: ts | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out TS Project Git repository | |
uses: actions/checkout@v3 | |
- name: Runs Elasticsearch | |
uses: elastic/elastic-github-actions/elasticsearch@562b8b6ae4677da97273ff6bc4d630ce96ecbaa5 | |
with: | |
stack-version: 8.3.3 | |
security-enabled: false | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: npm | |
- name: Install TS Project dependencies | |
run: npm ci | |
- name: Run tests | |
run: npm run test |