Skip to content

Commit

Permalink
Additional workflow types
Browse files Browse the repository at this point in the history
  • Loading branch information
minagishl committed Oct 27, 2024
1 parent fac9221 commit b0c0b6c
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 92 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Checks

on:
push:
branches: ["main", "develop"]
pull_request:
branches: ["main", "develop"]

jobs:
lint:
name: Lint
runs-on: ubuntu-latest

steps:
- name: Clone Repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set Up Node.js
uses: actions/setup-node@v4
with:
node-version: "20.18.x"

- name: Install Dependencies
run: npm install

- name: Run Biome
run: npm run lint

test:
name: Test
needs: lint
runs-on: ubuntu-latest

steps:
- name: Clone Repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set Up Node.js
uses: actions/setup-node@v4
with:
node-version: "20.18.x"

- name: Install Dependencies
run: npm install

- name: Run Biome
run: npm run test

scan:
name: Scan
runs-on: ${{ github.event_name == 'push' && 'ubuntu-latest' || 'macos-latest' }}
permissions:
security-events: write
packages: read
actions: read
contents: read

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

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: "javascript-typescript"
build-mode: "none"

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:javascript-typescript"
92 changes: 0 additions & 92 deletions .github/workflows/codeql.yml

This file was deleted.

0 comments on commit b0c0b6c

Please sign in to comment.