Skip to content

Commit

Permalink
Merge pull request #1 from hack4impact-calpoly/develop
Browse files Browse the repository at this point in the history
Finish CI Setup
  • Loading branch information
ryanhu021 authored Dec 29, 2023
2 parents 3f01777 + 1a4971d commit 97ccb65
Show file tree
Hide file tree
Showing 11 changed files with 1,097 additions and 46 deletions.
7 changes: 6 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"extends": ["next/core-web-vitals", "prettier"]
"parser": "@typescript-eslint/parser",
"extends": ["next/core-web-vitals", "prettier"],
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error"
}
}
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/new-issue.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: New Issue
about: Create a new issue
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

**Description**
Expand All @@ -14,6 +13,7 @@ A clear and concise description of what the problem is. Ex. I'm always frustrate
A clear and concise description of what you want to happen.

Steps:

- step 1
- step 2

Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: ci

# Controls when the workflow will run
on:
push:
branches: ["main", "develop"]
pull_request:
branches: ["main", "develop"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: "18.x"

- name: Install dependencies
run: npm install

- name: Dry-run build
run: npm run build
env:
MONGO_URI: ${{ secrets.MONGO_URI }}
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
4 changes: 4 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.{js,jsx,ts,tsx}": "eslint --fix",
"*.{js,jsx,ts,tsx,css,md,json}": "prettier --write"
}
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# name of non-profit
# Ecologistics SLO

{One sentence description of the project}
[![ci](https://github.com/hack4impact-calpoly/ecologistics-portal/actions/workflows/ci.yml/badge.svg?branch=main&event=push)](https://github.com/hack4impact-calpoly/ecologistics-portal/actions/workflows/ci.yml)

A web portal for Ecologistics SLO

## Table of Contents

- [Overview](#overview)
- [Purpose](#purpose)
- [Team](#team)
- [Getting Started And Contributing](#getting-started-and-contributing)
- [Ecologistics SLO](#ecologistics-slo)
- [Table of Contents](#table-of-contents)
- [Overview](#overview)
- [Purpose](#purpose)
- [Team](#team)
- [Getting Started And Contributing](#getting-started-and-contributing)

## Overview

Expand All @@ -19,10 +23,10 @@

The {non-profit name} team consists of {#} Cal Poly students. Over the course of about 9 months, we worked as a team to deploy this web application. The team members are listed below:

- [First Last](https://www.linkedin.com/) - Project Manager
- [Annes Huynh](https://www.linkedin.com/) - Project Manager
- [First Last](https://www.linkedin.com/) - Designer
- [First Last](https://www.linkedin.com/) - Tech Lead
- [First Last](https://www.linkedin.com/) - Tech Lead
- [Ryan Hu](https://www.linkedin.com/) - Tech Lead
- [Ian Loo](https://www.linkedin.com/) - Tech Lead
- [First Last](https://www.linkedin.com/) - Software Developer

## Getting Started And Contributing
Expand Down
2 changes: 1 addition & 1 deletion docs/template-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ This template uses Next.js version 14.0.0. The following lists what is configure
7. Template documentation to fill in
8. Two branches called `develop` and `main` (if you selected copy branches when creating from template)
9. Issue and Pull Request templates. Modify them in the `.github` folder
10. Some common GitHub tags
10. Some common GitHub tags

Last updated 11/13/23
4 changes: 2 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}
const nextConfig = {};

module.exports = nextConfig
module.exports = nextConfig;
Loading

0 comments on commit 97ccb65

Please sign in to comment.