VladislavPixel is testing out GitHub Actions π #63
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: GitHub Actions Demo | |
run-name: ${{ github.actor }} is testing out GitHub Actions π | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
init: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
node-varsion: [16.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Staring Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: install modules | |
run: npm install | |
- name: create build project(parcel) | |
run: npm run build | |
- name: format code | |
run: npm run format | |
- name: lint code | |
run: npm run eslint | |
- name: unit test | |
run: npm run test |