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

Protect demo #889

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
ff8d165
Update package-lock.json
velikarade Mar 4, 2024
a6d4ca4
update PokemonPage.jsx
velikarade Mar 4, 2024
2fd37cd
Create pipeline.yml
velikarade Mar 4, 2024
35c7789
Update pipeline.yml
velikarade Mar 4, 2024
e94afc9
Update pipeline.yml
velikarade Mar 4, 2024
c33870e
einige fehler sind behoben
velikarade Mar 4, 2024
8c462cd
Merge branch 'master' of https://github.com/velikarade/full-stack-ope…
velikarade Mar 4, 2024
cf04014
.
velikarade Mar 4, 2024
5cd9157
.
velikarade Mar 4, 2024
2a7e2c4
update app.js und index.jsx
velikarade Mar 4, 2024
8cda9ab
update app.js
velikarade Mar 4, 2024
1fb2d3b
update app.js
velikarade Mar 4, 2024
f0d2ebd
Update pipeline.yml
velikarade Mar 4, 2024
45eed57
Update pipeline.yml
velikarade Mar 4, 2024
c33e3a6
..
velikarade Mar 5, 2024
89e8d9f
test
velikarade Mar 5, 2024
08679ba
update PokemonAbility.jsx
velikarade Mar 5, 2024
122e4d8
deneme
velikarade Mar 5, 2024
25a25c2
Update pipeline.yml
velikarade Mar 5, 2024
8e033cb
Update pipeline.yml
velikarade Mar 5, 2024
2aaa238
Update pipeline.yml
velikarade Mar 5, 2024
a85f8c8
Update pipeline.yml
velikarade Mar 5, 2024
03700b0
Update pipeline.yml
velikarade Mar 5, 2024
2dfa58b
Update pipeline.yml
velikarade Mar 5, 2024
a4ec1af
Update pipeline.yml
velikarade Mar 5, 2024
1abc149
Create test.yml
velikarade Mar 5, 2024
798838d
Update test.yml
velikarade Mar 5, 2024
13f932a
Update test.yml
velikarade Mar 5, 2024
b266439
Update pipeline.yml
velikarade Mar 6, 2024
dae56af
Update pipeline.yml
velikarade Mar 6, 2024
e2ccddc
Update pipeline.yml
velikarade Mar 6, 2024
2c6858e
Update pipeline.yml
velikarade Mar 6, 2024
7de77b1
Update pipeline.yml
velikarade Mar 7, 2024
567f248
Update pipeline.yml
velikarade 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
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,10 @@ module.exports = {
],
"no-console": "error",
"react/prop-types": 0
},
"settings": {
"react": {
"version": "detect"
}
}
}
47 changes: 47 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Pokedex

on:
push:
branches:
- master

pull_request:
branches: [master]
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: Abheängigkeiten installieren
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' }}
needs: [simple_deployment_pipeline]
runs-on: ubuntu-latest

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

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

on:
push:
branches:
- master

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 message
env:
COMMIT_MESSAGES: ${{ toJson(github.event.commits.*.message) }}
run: echo "$COMMIT_MESSAGES"
3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* global process */
const express = require("express");
const app = express();

Expand All @@ -7,5 +8,5 @@ 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