versioning #13
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: coretime-utils CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# Setup Node.js environment | |
- name: Use Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
# Install dependencies | |
- name: Install dependencies | |
run: npm i | |
# Run linter | |
- name: Run Linter | |
run: npm run lint | |
# Check Prettier | |
- name: Check Prettier | |
run: npm run prettier | |
# Run tests | |
- name: Run Tests | |
run: npm test |