new recipes: poe #700
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Builds | |
on: | |
# Push to any tracked branches | |
push: | |
branches: [main] | |
# PRs only on main branch | |
pull_request: | |
branches: [main] | |
# Manual trigger from the UI | |
workflow_dispatch: | |
inputs: | |
message: | |
description: 'Message for build' | |
required: true | |
jobs: | |
build: | |
name: Ferdium Recipes Build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Print latest commit | |
run: echo ${{ github.sha }} | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Use Node.js specified in the '.nvmrc' file | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'pnpm' | |
- name: Install node dependencies recursively | |
uses: nick-fields/[email protected] | |
with: | |
command: pnpm i | |
timeout_minutes: 15 | |
max_attempts: 3 | |
retry_on: error | |
- name: Check code style and formatting | |
if: ${{ github.event_name == 'pull_request' }} | |
run: pnpm lint:fix && pnpm reformat-files | |
- name: Package recipes | |
run: pnpm package |