Skip to content

Commit

Permalink
Update workflows to run on local runner. (#3)
Browse files Browse the repository at this point in the history
* Update workflows to run on local runner.

* Setup go in codeql workflow.
  • Loading branch information
jbirdman authored Jan 21, 2025
1 parent bcb59be commit 05422c6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 30 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ name: "CodeQL"

on:
push:
branches: [ "master" ]
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
branches: [ "main" ]
schedule:
- cron: '23 23 * * 2'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: arc-runner-set
permissions:
actions: read
contents: read
Expand All @@ -40,9 +40,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ name: Go

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]

jobs:

build:
runs-on: ubuntu-latest
runs-on: arc-runner-set
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.18
go-version-file: 'go.mod'

- name: Build
run: go build -v ./...
Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/local.yml

This file was deleted.

0 comments on commit 05422c6

Please sign in to comment.