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

testing rules Feature2 #891

Closed
wants to merge 43 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
3922e03
PokemonPage updated Test passed.
Andres-23-wq Mar 4, 2024
90c2596
Create main.yml
Andres-23-wq Mar 4, 2024
c8c9252
Update main.yml
Andres-23-wq Mar 4, 2024
8ed1de9
jsx file updated
Andres-23-wq Mar 4, 2024
301e9b6
app.js index.jsx updated
Andres-23-wq Mar 4, 2024
f7b0ce3
Eslint config settings
Andres-23-wq Mar 4, 2024
827ade1
eslintr.js updated
Andres-23-wq Mar 5, 2024
7162f64
Update package.json
Andres-23-wq Mar 5, 2024
3ff2841
Update package.json
Andres-23-wq Mar 5, 2024
6764849
Update main.yml
Andres-23-wq Mar 5, 2024
02e66a6
Update main.yml
Andres-23-wq Mar 5, 2024
35f8356
Update main.yml
Andres-23-wq Mar 5, 2024
d4d3252
Update main.yml
Andres-23-wq Mar 5, 2024
aece17b
Update PokemonPage.jsx
Andres-23-wq Mar 5, 2024
27fd866
Update main.yml
Andres-23-wq Mar 5, 2024
54e72cd
Update main.yml
Andres-23-wq Mar 5, 2024
fa1f354
Update main.yml
Andres-23-wq Mar 5, 2024
c04f4e9
Update main.yml
Andres-23-wq Mar 5, 2024
f598b60
Merge pull request #1 from Andres-23-wq/feature
Andres-23-wq Mar 5, 2024
f0d1a1a
Update main.yml
Andres-23-wq Mar 6, 2024
6accead
Update main.yml
Andres-23-wq Mar 6, 2024
fe8b27f
Merge branch 'feature' of https://github.com/Andres-23-wq/full-stack-…
Andres-23-wq Mar 6, 2024
6914a25
Update main.yml
Andres-23-wq Mar 6, 2024
902b5e8
Merge pull request #2 from Andres-23-wq/feature
Andres-23-wq Mar 6, 2024
22731b8
Update main.yml
Andres-23-wq Mar 6, 2024
d4e0bf1
add. tag release
Andres-23-wq Mar 6, 2024
eba519f
tag release push
Andres-23-wq Mar 6, 2024
4dce47c
Update main.yml
Andres-23-wq Mar 6, 2024
4517198
Update main.yml
Andres-23-wq Mar 6, 2024
5742b90
Update main.yml
Andres-23-wq Mar 6, 2024
93aac98
push tag
Andres-23-wq Mar 6, 2024
a7049ca
Update main.yml
Andres-23-wq Mar 6, 2024
0c90147
Update main.yml
Andres-23-wq Mar 6, 2024
fdf2b4d
Merge pull request #3 from Andres-23-wq/feature
Andres-23-wq Mar 6, 2024
b5bc959
Update main.yml
Andres-23-wq Mar 6, 2024
60632b2
Merge pull request #4 from Andres-23-wq/feature
Andres-23-wq Mar 6, 2024
341a8e9
Update main.yml
Andres-23-wq Mar 6, 2024
523c379
Update main.yml
Andres-23-wq Mar 7, 2024
987721d
#skip
Andres-23-wq Mar 7, 2024
510e825
update main.yml
Andres-23-wq Mar 7, 2024
116504e
protect main branch
Andres-23-wq Mar 7, 2024
95a0ad1
Fehlerbehebung
Andres-23-wq Mar 7, 2024
d77de97
Update main.yml
Andres-23-wq Mar 7, 2024
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
15 changes: 11 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,19 @@ module.exports = {
"sourceType": "module"
},
"plugins": [
"react", "jest"
"react",
"jest" // Corrected the placement of the comma
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"indent": [
"error",
2
],
2
],
"linebreak-style": [
"error",
"unix"
Expand All @@ -46,4 +52,5 @@ module.exports = {
"no-console": "error",
"react/prop-types": 0
}
}
};

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:
- main
- test
pull_request:
branches: [main]
types: [opened, synchronize]

jobs:
simple_deployment_pipeline:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install Dependencies
run: npm install --force
- 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@f7a8973e934fdd1f4fb3483d0a04d8c589df9d65
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch
WITH_V: true



9 changes: 4 additions & 5 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/* 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");
});
Loading