-
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.
- Loading branch information
Showing
5 changed files
with
99 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,21 @@ | ||
# SPDX-FileCopyrightText: 2024 Shota FUJI <pockawoooh@gmail.com> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Check copyright attributions | ||
|
||
on: | ||
push: | ||
# Runs on every push | ||
branches: | ||
- "*" | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run REUSE lint tool | ||
uses: fsfe/reuse-action@v5 |
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,29 @@ | ||
# SPDX-FileCopyrightText: 2024 Shota FUJI <pockawoooh@gmail.com> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Check files are correctly formatted | ||
|
||
on: | ||
push: | ||
# Runs on every push | ||
branches: | ||
- "*" | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Gleam | ||
uses: erlef/setup-beam@v1 | ||
with: | ||
# Reading of `.tool-versions` in setup-beam is very limited: it only supports | ||
# fully specified version strings, such as 1.2.3. | ||
otp-version: "27" | ||
gleam-version: "1.6" | ||
|
||
- name: Check format with dprint | ||
uses: dprint/check@v2.2 |
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,41 @@ | ||
# SPDX-FileCopyrightText: 2024 Shota FUJI <pockawoooh@gmail.com> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Run tests | ||
|
||
on: | ||
push: | ||
# Runs on every push | ||
branches: | ||
- "*" | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Gleam | ||
uses: erlef/setup-beam@v1 | ||
with: | ||
# Reading of `.tool-versions` in setup-beam is very limited: it only supports | ||
# fully specified version strings, such as 1.2.3. | ||
otp-version: "27" | ||
gleam-version: "1.6" | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .tool-versions | ||
cache: npm | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run tests | ||
run: npm test | ||
|
||
- name: Check types | ||
run: npx tsc |
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