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

feat: add ci workflow #3

Merged
merged 2 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
55 changes: 55 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# OsmosysForm PR Checklist

## Pre-requisites

- [ ] I have gone through the Contributing guidelines for [Submitting a Pull Request (PR)](../CONTRIBUTING.md#submitting-a-pull-request-pr) and ensured that this is not a duplicate PR.
- [ ] I have performed preliminary testing to ensure that any existing features are not impacted and any new features are working as expected.
- [ ] I have tested the library in a demo Angular application to verify functionality and integration.

## PR Details

PR details have been updated as per the given format (see below)

- [ ] PR title adheres to the format specified in guidelines (e.g., `feat: add dynamic form validation`).
- [ ] Description has been added.
- [ ] Related changes have been added (optional).
- [ ] Screenshots have been added (optional).
- [ ] Pending actions have been added (optional).
- [ ] Any other additional notes have been added (optional).

## Additional Information

- [ ] Appropriate label(s) have been added (`ready for review` should be added if the PR is ready to be reviewed).
- [ ] Assignee(s) and reviewer(s) have been added (optional).

## Development Specific

- [ ] **Unit Tests**: Relevant unit tests have been added or updated, and all tests pass (run `ng test`) (optional).
- [ ] **Library Build**: Run `ng build osmosys-form` to ensure the library builds without errors.
- [ ] **Demo Application Testing**: The new feature or fix has been tested within a demo application to ensure proper functionality and integration.
- [ ] **Documentation**: Relevant documentation has been updated, including the README and any inline comments.
- [ ] **Version Bump**: The version number has been incremented following semantic versioning guidelines if necessary.

---

**Description:**

Add a brief description about the changes made in this PR and their purpose. This section can also include mentions of any other PRs or issues if needed.

**Related changes:**

- Add short points about the different changes made within the files in this PR.

**Screenshots:**

Add any screenshots as required.

**Pending actions:**

- Add a list of any pending actions that have or would require to be done in this PR.

**Additional notes:**

- Add a list of any additional notes you may want to convey in this PR.

---
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI for OsmosysForm Library

on:
pull_request:
branches: [ "main" ]
push:
branches: [ "main" ]

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Run linting
run: npm run lint

build:
name: Build
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Build library
run: npm run build osmosys-form
Loading