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

Jimmy #888

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Jimmy #888

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
45 changes: 45 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Pokedex

on:
push:
branches:
- Jimmy
- master
pull_request:
branches: [master]
types: [opened, synchronize]
jobs:

simple_deployment_pipeline:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install Dependencies
run: npm install
- name: Code Linting (with Fix)
run: npm run eslint -- --fix
- name: Build
run: npm run build
- name: Run Tests
run: npm test

tag_release:
if: ${{ github.event_name == 'push' && (!contains(toJSON(github.event.head_commit.message),'#skip')) }}
needs: [simple_deployment_pipeline]
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Bump version and push tag
uses: anothrNick/github-tag-action@72cc9b65fd4cdd0de63b8dd7c098e1741ae0951a
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch
WITH_V: true
24 changes: 24 additions & 0 deletions .github/workflows/teststuff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Testing stuff

on:
push:
branches:
- main

jobs:
a_test_job:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: github context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: commits
env:
COMMITS: ${{ toJson(github.event.commits) }}
run: echo "$COMMITS"
- name: commit messages
env:
COMMIT_MESSAGES: ${{ toJson(github.event.commits.*.message) }}
run: echo "$COMMIT_MESSAGES"
12 changes: 8 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import React from 'react';
import { createRoot } from 'react-dom';
import App from './App.';
/* global process */
const express = require("express");
const app = express();

// Heroku dynamically sets a port
const PORT = process.env.PORT || 5000;

app.use(express.static("dist"));

app.listen(PORT, () => {
console.log("server started on port 5000");
// console.log("server started on port 5000");
});

const root = createRoot(document.getElementById('root'));
root.render(<App />);
Loading