Skip to content

Commit

Permalink
Change CI
Browse files Browse the repository at this point in the history
  • Loading branch information
offensive-vk authored Sep 22, 2024
1 parent a3db040 commit ee650c8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
4 changes: 0 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ FROM node:20-slim

SHELL ["/bin/bash", "-c"]

RUN useradd -m node

USER node

RUN npm i -g pnpm@9.0.0

WORKDIR /app
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
schedule:
- cron: '0 */4 * * *'
push:
branches: ['dev']
branches: ['dev', '**']
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
automated
hamster
reviewers: offensive-vk
base: fix-actions
base: dev
token: ${{ secrets.BOT_TOKEN || secrets.GITHUB_TOKEN }}
body: |
## This Pull Request Was Automated by [Hamster [bot]](https://github.com/TheHamsterBot)
Expand Down Expand Up @@ -86,7 +86,6 @@ jobs:
id: checkout-base-branch
uses: actions/checkout@v4
with:
# Checkout the base branch, not the auto-fix branch
ref: ${{ github.event.pull_request.base.ref }}
fetch-depth: 0

Expand All @@ -99,13 +98,12 @@ jobs:

- name: Install Dependencies
id: install
run: npx pnpm i
run: npm run setup

- name: Lint Codebase
id: super-linter
uses: super-linter/super-linter/slim@v7
env:
DEFAULT_BRANCH: ${{ github.event.pull_request.base.ref }}
FILTER_REGEX_EXCLUDE: dist/**/*
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
VALIDATE_ALL_CODEBASE: true
Expand Down
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ FROM node:20-slim

SHELL ["/bin/bash", "-c"]

RUN useradd -m node

USER node

RUN npm i -g pnpm@9.0.0

WORKDIR /app
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Create a GitHub Action Using TypeScript

[![GitHub Super-Linter](https://github.com/actions/typescript-action/actions/workflows/linter.yml/badge.svg)](https://github.com/super-linter/super-linter)
![CI](https://github.com/actions/typescript-action/actions/workflows/ci.yml/badge.svg)
[![Check dist/](https://github.com/actions/typescript-action/actions/workflows/check-dist.yml/badge.svg)](https://github.com/actions/typescript-action/actions/workflows/check-dist.yml)
[![CodeQL](https://github.com/actions/typescript-action/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/actions/typescript-action/actions/workflows/codeql-analysis.yml)
[![CI / Build & Test](https://github.com/offensive-vk/ts-action-starter/actions/workflows/bundle.yml/badge.svg)](https://github.com/offensive-vk/ts-action-starter/actions/workflows/bundle.yml)
[![CI / Check Transpiled JavaScript](https://github.com/offensive-vk/ts-action-starter/actions/workflows/check-dist.yml/badge.svg)](https://github.com/offensive-vk/ts-action-starter/actions/workflows/check-dist.yml)
[![CI / Deploy to DockerHub](https://github.com/offensive-vk/ts-action-starter/actions/workflows/docker.yml/badge.svg)](https://github.com/offensive-vk/ts-action-starter/actions/workflows/docker.yml)
[![CI / Deploy to GHCR](https://github.com/offensive-vk/ts-action-starter/actions/workflows/deploy.yml/badge.svg)](https://github.com/offensive-vk/ts-action-starter/actions/workflows/deploy.yml)
[![CI / Lint](https://github.com/offensive-vk/ts-action-starter/actions/workflows/linter.yml/badge.svg)](https://github.com/offensive-vk/ts-action-starter/actions/workflows/linter.yml)
[![Coverage](./badges/coverage.svg)](./badges/coverage.svg)

Use this template to bootstrap the creation of a TypeScript action. :rocket:
Expand Down

0 comments on commit ee650c8

Please sign in to comment.