testing rules Feature2 #65
Workflow file for this run
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: Pokedex | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- test | ||
pull_request: | ||
branches: [main] | ||
types: [opened, synchronize] | ||
jobs: | ||
simple_deployment_pipeline: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
- name: Install Dependencies | ||
run: npm install --force | ||
- name: Code Linting (with Fix) | ||
run: npm run eslint -- --fix | ||
- name: Build | ||
run: npm run build | ||
- name: Run Tests | ||
run: npm test | ||
tag_release: | ||
if: ${{ github.event_name == 'push' && (!contains(toJSON(github.event.head_commit.message), '#skip')) }} | ||
needs: [simple_deployment_pipeline] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Bump version and push tag | ||
uses: anothrNick/github-tag-action@f7a8973e934fdd1f4fb3483d0a04d8c589df9d65 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DEFAULT_BUMP: patch | ||
WITH_V: true | ||