⬆️ Updates eslint-plugin-jest to v28 #1220
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: Preview | |
on: | |
pull_request: | |
paths: | |
- package.json | |
- yarn.lock | |
- .github/workflows/preview.yml | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: "12" | |
- uses: actions/[email protected] | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install all node packages | |
run: | | |
npm install | |
- name: Run test all | |
run: | | |
npm run test:all | |
- name: Run check all | |
run: | | |
npm run check:all | |
- name: 🔔 Notify on Slack | |
uses: 8398a7/action-slack@v3 | |
if: failure() && (github.event.ref == 'refs/heads/master') | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_API }} | |
with: | |
channel: '#api' | |
status: ${{ job.status }} | |
fields: job,commit,ref,eventName,author,took | |
author_name: [email protected] | |
- name: Start development server | |
run: | | |
npm run develop & | |
- name: Test development server | |
run: | | |
curl --retry-connrefused --retry 5 http://localhost:3000/ | |
curl --fail http://localhost:3000/api?theme=default_repocard&layout=churchill > /dev/null |