Skip to content

Added Static Pages #117

Added Static Pages

Added Static Pages #117

Workflow file for this run

name: 'Lint Code'
on: workflow_dispatch:

Check failure on line 3 in .github/workflows/linter.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/linter.yml

Invalid workflow file

You have an error in your yaml syntax on line 3
push:
branches: [master, main]
pull_request:
branches: [master, main]
jobs: # list of things to do
lint_function_js:
name: Linting JavaScript Function
runs-on: ubuntu-latest
steps: # list of steps
- name: Install NodeJS
uses: actions/setup-node@v3
with:
node-version: 16
- name: Code Checkout
uses: actions/checkout@v3
- name: Install Dependencies
run: npm install
working-directory: functions/sample/nodejs
- name: Code Linting
run: npm run lint
working-directory: functions/sample/nodejs
lint_function_python:
name: Linting Python Function
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with Pylint
run: pylint *.py
working-directory: functions/sample/python
lint_django_server:
name: Linting Django Server
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with Pylint
run: pylint *.py
working-directory: server