Skip to content

Commit f4b3243

Browse files
committed
ビルド確認の設定を追加する
2 parents cb73d8e + ac28d42 commit f4b3243

File tree

6 files changed

+92
-29
lines changed

6 files changed

+92
-29
lines changed

.github/workflows/build.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: ビルドの確認
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
on:
8+
push:
9+
branches:
10+
- '**'
11+
tags-ignore:
12+
- 'v*.*.*'
13+
workflow_dispatch:
14+
15+
jobs:
16+
election-bulletin-2023:
17+
name: ビルド確認
18+
runs-on: ubuntu-22.04
19+
timeout-minutes: 15
20+
steps:
21+
- name: (デバッグ用)Payload (GITHUB_EVENT_PATH) を確認する
22+
run: |
23+
cat $GITHUB_EVENT_PATH
24+
- name: (デバッグ用)inputs と secrets と github と env を確認する
25+
run: |
26+
echo '${{ toJson(inputs) }}'
27+
echo '${{ toJson(secrets) }}'
28+
echo '${{ toJson(github) }}'
29+
echo '${{ toJson(env) }}'
30+
- name: (デバッグ用)env を確認する
31+
run: |
32+
echo '${{ toJson(env) }}'
33+
- name: コードをチェックアウトする
34+
uses: actions/checkout@v3
35+
- name: Node.js のセットアップを行う
36+
uses: actions/setup-node@v3
37+
with:
38+
node-version-file: '.node-version'
39+
cache: yarn
40+
cache-dependency-path: yarn.lock
41+
- name: Node のパッケージをインストールする
42+
run: |
43+
yarn install
44+
- name: (デバッグ用)各種バージョンを確認する
45+
run: |
46+
echo "gh version: $(gh version)"
47+
echo "docker --version: $(docker --version)"
48+
echo "docker-compose --version: $(docker-compose --version)"
49+
echo "node --version: $(node --version)"
50+
echo "npm --version: $(npm --version)"
51+
echo "npm list: $(npm list)"
52+
echo "npm list -g: $(npm list -g)"
53+
echo "yarn --version: $(yarn --version)
54+
echo "npx --version: $(npx --version)
55+
- name: TypeScript をコンパイルする
56+
run: |
57+
npx tsc
58+
- name: ESLint を実行する
59+
run: |
60+
npx eslint --ext .tsx .
61+
# npx eslint --ext .ts .

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
tmp/
2+
config/google_creds.json
3+
14
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
25

36
# dependencies

README.md

+10-27
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,17 @@
1-
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
1+
# 幻水総選挙公報2023
2+
- 公報
3+
- フォームのサンクスページ
24

3-
## Getting Started
5+
# .tpl 復元方法
46

5-
First, run the development server:
7+
#### 1. 原則
68

79
```bash
8-
npm run dev
9-
# or
10-
yarn dev
11-
# or
12-
pnpm dev
10+
$ op inject -i .env.tpl -o .env.output
1311
```
1412

15-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
13+
#### 2. 具体例
1614

17-
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
18-
19-
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
20-
21-
## Learn More
22-
23-
To learn more about Next.js, take a look at the following resources:
24-
25-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
26-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
27-
28-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
29-
30-
## Deploy on Vercel
31-
32-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
33-
34-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
15+
```bash
16+
$ op inject -i config/google_creds.json.tpl -o config/google_creds.json
17+
```

config/google_creds.json.tpl

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
op://Personal/fpednokrraprw6xfntyb6i4dyy/add more/creds.json

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@typescript-eslint/parser": "^5.59.11",
2121
"eslint-config-prettier": "^8.8.0",
2222
"prettier": "^2.8.8",
23+
"sass": "^1.63.4",
2324
"ts-node": "^10.9.1"
2425
},
2526
"private": true,

yarn.lock

+16-2
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ chalk@^4.0.0:
627627
ansi-styles "^4.1.0"
628628
supports-color "^7.1.0"
629629

630-
chokidar@^3.5.3:
630+
"chokidar@>=3.0.0 <4.0.0", chokidar@^3.5.3:
631631
version "3.5.3"
632632
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd"
633633
integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==
@@ -1445,6 +1445,11 @@ ignore@^5.2.0:
14451445
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324"
14461446
integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==
14471447

1448+
immutable@^4.0.0:
1449+
version "4.3.0"
1450+
resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.3.0.tgz#eb1738f14ffb39fd068b1dbe1296117484dd34be"
1451+
integrity sha512-0AOCmOip+xgJwEVTQj1EfiDDOkPmuyllDuTuEX+DDXUgapLAsBIfkg3sxCYyCEA8mQqZrrxPUGjcOQ2JS3WLkg==
1452+
14481453
import-fresh@^3.0.0, import-fresh@^3.2.1:
14491454
version "3.3.0"
14501455
resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b"
@@ -2261,6 +2266,15 @@ safe-regex-test@^1.0.0:
22612266
get-intrinsic "^1.1.3"
22622267
is-regex "^1.1.4"
22632268

2269+
sass@^1.63.4:
2270+
version "1.63.4"
2271+
resolved "https://registry.yarnpkg.com/sass/-/sass-1.63.4.tgz#caf60643321044c61f6a0fe638a07abbd31cfb5d"
2272+
integrity sha512-Sx/+weUmK+oiIlI+9sdD0wZHsqpbgQg8wSwSnGBjwb5GwqFhYNwwnI+UWZtLjKvKyFlKkatRK235qQ3mokyPoQ==
2273+
dependencies:
2274+
chokidar ">=3.0.0 <4.0.0"
2275+
immutable "^4.0.0"
2276+
source-map-js ">=0.6.2 <2.0.0"
2277+
22642278
scheduler@^0.23.0:
22652279
version "0.23.0"
22662280
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.0.tgz#ba8041afc3d30eb206a487b6b384002e4e61fdfe"
@@ -2316,7 +2330,7 @@ slash@^4.0.0:
23162330
resolved "https://registry.yarnpkg.com/slash/-/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7"
23172331
integrity sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==
23182332

2319-
source-map-js@^1.0.2:
2333+
"source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.0.2:
23202334
version "1.0.2"
23212335
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c"
23222336
integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==

0 commit comments

Comments
 (0)