Update dependency rollup to v4 #7846
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: CI | |
on: | |
push: | |
branches: | |
- '**' | |
repository_dispatch: | |
types: [update] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.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 | |
*/*/*/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 || echo "skip" | |
deploy: | |
needs: build | |
if: ${{ github.event_name != 'pull_request' && contains(github.ref, 'main') }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: cache deps | |
uses: actions/cache@main | |
with: | |
path: | | |
node_modules | |
*/*/*/node_modules | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Snap | |
run: yarn snap | |
- name: 'Run Azure Functions Action' | |
uses: Azure/functions-action@v1 | |
id: fa | |
with: | |
app-name: 'khaos-functions' | |
publish-profile: ${{ secrets.AZURE_APP_SERVICE_PUBLISH_PROFILE }} |