-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
can oidc pick up permissions from the other workflow?
- Loading branch information
1 parent
9ff749f
commit a2dc5e4
Showing
11 changed files
with
6,624 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Frontend workflow | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Test JS frontend | ||
defaults: | ||
run: | ||
working-directory: ./web | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
- name: Install requirements | ||
run: npm install | ||
- name: Run tests and collect coverage | ||
run: npm run test | ||
- name: Upload coverage reports to Codecov with GitHub Action | ||
uses: codecov/codecov-action@v4.2.0 | ||
with: | ||
use_oidc: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"env": { | ||
"test": { | ||
"plugins": ["@babel/plugin-transform-modules-commonjs"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Codecov Server-side Calculator App</title> | ||
<link rel="stylesheet" href="/static/css/calculator.css"> | ||
</head> | ||
<body> | ||
<div class="calculator"> | ||
<div class="output"> | ||
<div data-previous-operand class="previous-operand">123 +</div> | ||
<div data-current-operand class="current-operand">456</div> | ||
</div> | ||
<button class="span-3 disabled"></button> | ||
<button data-all-clear>C</button> | ||
<button data-number>7</button> | ||
<button data-number>8</button> | ||
<button data-number>9</button> | ||
<button data-operation>÷</button> | ||
<button data-number>4</button> | ||
<button data-number>5</button> | ||
<button data-number>6</button> | ||
<button data-operation>*</button> | ||
<button data-number>1</button> | ||
<button data-number>2</button> | ||
<button data-number>3</button> | ||
<button data-operation>-</button> | ||
<button data-number>.</button> | ||
<button data-number>0</button> | ||
<button data-equals>=</button> | ||
<button data-operation>+</button> | ||
</div> | ||
<script type="module" src="/static/js/calculatorView.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.