Skip to content

Commit de20682

Browse files
authored
Merge pull request #1 from github/skarim/gh-stack-prototype
Stacks CLI prototype with core operations
2 parents c6da4fc + c26f8b0 commit de20682

51 files changed

Lines changed: 12700 additions & 48 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: release
2+
23
on:
34
push:
45
tags:
56
- "v*"
7+
68
permissions:
79
contents: write
810
id-token: write
@@ -13,7 +15,11 @@ jobs:
1315
runs-on: ubuntu-latest
1416
steps:
1517
- uses: actions/checkout@v6
18+
- id: version
19+
run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
1620
- uses: cli/gh-extension-precompile@v2
1721
with:
1822
generate_attestations: true
1923
go_version_file: go.mod
24+
go_build_options: >-
25+
-ldflags '-X github.com/github/gh-stack/cmd.Version=${{ steps.version.outputs.version }}'

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: [ubuntu-latest, windows-latest, macos-latest]
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- uses: actions/checkout@v6
21+
- uses: actions/setup-go@v6
22+
with:
23+
go-version-file: go.mod
24+
- name: Download dependencies
25+
run: go mod download
26+
- name: Vet
27+
run: go vet ./...
28+
- name: Test
29+
run: go test -race -count=1 ./...

0 commit comments

Comments
 (0)