Skip to content

Commit

Permalink
Update README and action.yml, add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ukupat committed Feb 1, 2024
1 parent 59c6a36 commit 3a7b635
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Continuous Integration

on:
pull_request:
push:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: yarn

- name: Check code format
run: yarn prettier

- name: Lint
run: yarn lint

- name: Build
run: yarn build
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ jobs:

- uses: rematocorp/submodule-status-commenter@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }} # Make sure this token allows to checkout the submodule
github-token: ${{ secrets.GITHUB_TOKEN }} # Make sure this token can access the submodule
submodule-path: packages/foo # Absolute path to the submodule in the parent repository
```
3 changes: 1 addition & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
author: Remato
name: Git Submodule Status Commenter
description: GitHub action to comment git submodules current branch and state to the PR
description: GitHub action to comment git submodule status to the PR
branding:
color: gray-dark
icon: git-branch
Expand All @@ -11,7 +11,6 @@ inputs:
submodule-path:
description: Path to the submodule directory
required: true
default: false
runs:
using: node20
main: 'dist/index.js'

0 comments on commit 3a7b635

Please sign in to comment.