feat: todolist without database (#7) #23
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: Deploy using Github Action | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- run: npm ci | |
- name: Build | |
env: | |
CI: false | |
run: npm run build --if-present | |
- name: Run tests | |
run: npm test | |
# I don't need CD | |
# - name: Deploy 🚀 | |
# uses: JamesIves/github-pages-deploy-action@v4 | |
# with: | |
# folder: build |