Skip to content

Commit

Permalink
feat(js): add github actions to blank js
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Jul 28, 2024
1 parent 536f404 commit 7c08eab
Showing 1 changed file with 61 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: write
id-token: write
packages: write
pages: write
pull-requests: read
jobs:
commitlint:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: '{{ "${{ secrets.GITHUB_TOKEN }}" }}'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch-depth is required

- uses: wagoid/commitlint-github-action@v6

pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: 3.x

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '>=1.20.0'

- uses: pre-commit/[email protected]

build:
runs-on: ubuntu-latest
needs:
- commitlint
- pre-commit
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: lts/*

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

0 comments on commit 7c08eab

Please sign in to comment.