Skip to content

Update dependency eslint-plugin-prettier to v5 #7421

Update dependency eslint-plugin-prettier to v5

Update dependency eslint-plugin-prettier to v5 #7421

name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: cache deps
uses: actions/cache@main
with:
path: |
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: install deps
run: yarn
- name: lint
run: yarn lint
- name: test
run: yarn test
deploy:
needs: build
if: ${{ github.event_name != 'pull_request' && contains(github.ref, 'main') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: restore cache deps
uses: actions/cache@main
with:
path: |
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Build
run: yarn build
- name: Login via Azure CLI
uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Deploy to Azure Functions
uses: Azure/functions-action@v1
id: fa
with:
app-name: programmable-proxy