Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
abd8bb2
create github action demo file
bjorkypie Sep 11, 2021
923b338
node.js workflow
bjorkypie Sep 11, 2021
7b4678a
testing on this branch first
bjorkypie Sep 11, 2021
67f9d2e
Merge branch 'main' into github-actions
relspeedwagon Oct 9, 2021
be0d7c9
changed scripts to yarn in build test workflow
bjorkypie Oct 9, 2021
aacbccf
remove yarn.lock from gitignore
bjorkypie Oct 9, 2021
e5185eb
set CI to empty string to avoid build fail
bjorkypie Oct 9, 2021
d232ae7
change yarn install scrpit in github workflow
bjorkypie Oct 9, 2021
c273ca2
set CI to empty string in run script for node github action workflow
bjorkypie Oct 9, 2021
10459f9
change start server package script in node github action workflow
bjorkypie Oct 9, 2021
46892dd
add linting and prettier scripts to github actions CI workflow
bjorkypie Oct 13, 2021
12cff81
testing format and linting workflows
bjorkypie Oct 13, 2021
5634d4d
running scripts individually
bjorkypie Oct 13, 2021
bd19f61
remove lint:fix script
bjorkypie Oct 13, 2021
1567be8
use linting action from marketplace
bjorkypie Oct 13, 2021
90af705
add eslintignore file
regromrob Oct 18, 2021
b0c661c
fix path
regromrob Oct 18, 2021
9e78d03
use own script for linting
regromrob Oct 18, 2021
7ac8baa
running prettier and linters independently
bjorkypie Oct 23, 2021
c87a990
pull request triggers build and linting, added workflow for merged prs
bjorkypie Oct 24, 2021
bebad71
adds suggested edits from review
relspeedwagon Nov 13, 2021
a86e7cd
fixes syntax error from prev commit
relspeedwagon Nov 13, 2021
276d524
testing syntax again
relspeedwagon Nov 13, 2021
3115597
with actions branch in workflow for testing
relspeedwagon Nov 13, 2021
4acb982
testing syntax again
relspeedwagon Nov 13, 2021
5222f00
testing without workflow_dispatch
relspeedwagon Nov 13, 2021
7a4888b
testing with workflow_dispatch back in; naming main branch instead of…
relspeedwagon Nov 13, 2021
1bb81a8
prev commit with -github-actions ran; removing that test and trying a…
relspeedwagon Nov 13, 2021
1844fc4
removes 'CI' line from Build Client Pkg in pull-req-node.js; uncommen…
relspeedwagon Nov 17, 2021
fdeee99
Merge branch 'main' into github-actions
relspeedwagon Nov 17, 2021
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
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages/client/build/*
!packages/client/build/index.js
33 changes: 33 additions & 0 deletions .github/workflows/merge-node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run formatting and linting across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Merge Build

on:
workflow_dispatch:
push:
branches:
- main
- staging-*

jobs:
merge_build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build client package
run: yarn build --if-present
- run: echo PR \#${{ github.event.number }} has been merged
37 changes: 37 additions & 0 deletions .github/workflows/pull-req-node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run formatting and linting across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Pull Request Lint & Build

on:
workflow_dispatch:
push:
branches:
- main
- staging-*

jobs:
CI:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build client package
run: yarn build --if-present
- name: Run Prettier
run: yarn format
- name: Run Linters
run: yarn lint:fix
1 change: 1 addition & 0 deletions packages/client/src/components/CreatePost.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function CreatePost() {

const handleSubmit = async (e) => {
e.preventDefault();

await axios.post(
`/api/post/create-post`,
{ ...post, isDraft: e.target.value },
Expand Down
Loading