testing #3
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: test,lint,deploy | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: download the project | |
uses: actions/checkout@v4 | |
- name: install nodejs | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: install all dependencies | |
run: npm install | |
- name: test | |
run: npm test | |
- name: lint | |
run: npm lint | |
yamllint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout the repository | |
uses: actions/checkout@v4 | |
- name: set up python | |
uses: actions/setup-python@v4 | |
- name: Install yamllint | |
run: pip install yamllint | |
- name: run yamllint | |
run: yamllint . --strict | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: deploy | |
run: echo "deploying ......." |