Skip to content

Commit

Permalink
Merge pull request #28 from DeveloperMindset123/github-actions-fix
Browse files Browse the repository at this point in the history
chore:fix label.yml
  • Loading branch information
DeveloperMindset123 authored Dec 1, 2024
2 parents b838928 + 1a87121 commit 785ef0a
Showing 7 changed files with 64 additions and 110 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/codeq-analysisPR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 'CodeQL'

on: pull_request

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20.11.1
- name: Use node_modules cache
uses: actions/cache@v4
with:
path: node_modules
key: yarn-node-20-lock-${{ hashFiles('yarn.lock') }}
restore-keys: |
yarn-node-20-lock-
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: javascript
- run: yarn add eas-cli
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
6 changes: 1 addition & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: 'CodeQL'

on:
push:
branches: ['main', 'onboarding-screen']
schedule:
- cron: '30 8 * * 5'
on: push

jobs:
analyze:
22 changes: 0 additions & 22 deletions .github/workflows/label.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/preview.yml

This file was deleted.

10 changes: 3 additions & 7 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
@@ -6,11 +6,7 @@
# https://github.com/github/super-linter
name: Lint Code Base

on:
push:
branches: [ "main", "onboarding-screen" ]
pull_request:
branches: [ "main", "onboarding-screen" ]
on: push
jobs:
run-lint:
runs-on: ubuntu-latest
@@ -24,6 +20,6 @@ jobs:
- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: "main"
VALIDATE_ALL_CODEBASE: true
DEFAULT_BRANCH: 'main'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/super-linterPR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This workflow executes several linters on changed files based on languages used in your code base whenever
# you push a code or open a pull request.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/github/super-linter
name: Lint Code Base

on: pull_request
jobs:
run-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0

- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: true
DEFAULT_BRANCH: 'main'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36 changes: 0 additions & 36 deletions .github/workflows/update.yml

This file was deleted.

0 comments on commit 785ef0a

Please sign in to comment.