Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added an example workflow #6

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,27 @@
# project-action-ci

GitHub Action for RedwoodJS Project CI

## Example

The following tests and perform quality assurances on your project when a pull request is [opened, synchronized, or reopened](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request).

```YAML
# .github/workflows/qa.yaml
name: Quality Assurance

on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
paths-ignore:
- README.md
- .vscode/**

jobs:
qa:
runs-on: ubuntu-latest
steps:
- name: RedwoodJS - Build, Lint, Diagnostics, and Tests
uses: redwoodjs/[email protected]
```
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
- name: Get yarn cache directory path
if: ${{ inputs.yarn3-cache == 'yes' }}
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
shell: bash

- name: Cache yarn
Expand All @@ -50,7 +50,7 @@ runs:

- name: Set project directory
id: project-directory
run: echo "::set-output name=dir::${{ inputs.project-directory }}"
run: echo "dir=${{ inputs.project-directory }}" >> $GITHUB_OUTPUT
shell: bash

- name: Install dependencies
Expand Down