Skip to content

Commit 5a08411

Browse files
authored
Merge pull request #1 from mincho-js/setup
Environment and Structure setup
2 parents f2ef6cb + ff79fae commit 5a08411

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+7015
-0
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
7+
[*.{js,json,yml}]
8+
charset = utf-8
9+
indent_style = space
10+
indent_size = 2

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.yarn/** linguist-vendored
2+
/.yarn/releases/* binary
3+
/.yarn/plugins/**/* binary
4+
/.pnp.* binary linguist-generated
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Setup
2+
3+
runs:
4+
using: composite
5+
steps:
6+
# https://github.com/actions/cache/blob/main/examples.md#node---yarn
7+
# https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
8+
- name: Get yarn cache directory path
9+
id: yarn-cache-dir-path
10+
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
11+
shell: bash
12+
13+
- uses: actions/cache@v3
14+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
15+
with:
16+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
17+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
18+
restore-keys: |
19+
${{ runner.os }}-yarn-
20+
21+
- name: Package Install
22+
run: yarn install --immutable
23+
shell: bash
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Check skip action
2+
3+
# https://github.com/fkirc/skip-duplicate-actions
4+
runs:
5+
using: composite
6+
steps:
7+
- uses: fkirc/skip-duplicate-actions@v5
8+
with:
9+
concurrent_skipping: same_content_newer
10+
skip_after_successful_duplicate: "true"
11+
paths_ignore: '["**/README.md"]'

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
# This action works with pull requests and pushes
4+
on: [push, pull_request]
5+
6+
jobs:
7+
pre_job:
8+
runs-on: ubuntu-latest
9+
outputs:
10+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
15+
- name: Check SkipAction
16+
id: skip_check
17+
uses: fkirc/skip-duplicate-actions@v5
18+
with:
19+
concurrent_skipping: same_content_newer
20+
skip_after_successful_duplicate: "true"
21+
paths_ignore: '["**/README.md"]'
22+
23+
build:
24+
needs: pre_job
25+
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v3
31+
32+
- name: Setup
33+
uses: ./.github/actions/node-setup
34+
35+
- name: Workflow lint
36+
run: yarn lint:action
37+
38+
- name: Test
39+
run: yarn test:all

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,6 @@ dist
128128
.yarn/build-state.yml
129129
.yarn/install-state.gz
130130
.pnp.*
131+
132+
# Turborepo
133+
.turbo

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Lines changed: 541 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/plugins/@yarnpkg/plugin-outdated.cjs

Lines changed: 35 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/plugins/@yarnpkg/plugin-typescript.cjs

Lines changed: 9 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/releases/yarn-3.6.4.cjs

Lines changed: 874 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)