Skip to content

Commit 6d4c9f8

Browse files
committed
setup GitHub Actions
1 parent d77c799 commit 6d4c9f8

File tree

4 files changed

+75
-2
lines changed

4 files changed

+75
-2
lines changed

.github/workflows/checks.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Checks
2+
3+
on:
4+
push:
5+
branches: ["**"]
6+
7+
jobs:
8+
ci:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v5
17+
with:
18+
go-version: "1.22"
19+
20+
- name: Install dependencies
21+
run: go mod tidy
22+
23+
- name: Build
24+
run: make build
25+
26+
- name: Test
27+
run: make test
28+
29+
- uses: actions/setup-node@v4
30+
with:
31+
node-version-file: ".nvmrc"
32+
33+
- name: Setup Featurevisor example-1 project
34+
run: |
35+
mkdir example-1
36+
(cd example-1 && npx @featurevisor/cli@2.x init --example=1)
37+
(cd example-1 && npm install)
38+
(cd example-1 && npx featurevisor test)
39+
40+
- name: Run Featurevisor project tests against Go SDK
41+
run: go run ./cli/main.go test --rootDirectoryPath=./example-1 --onlyFailures

.gitignore

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,33 @@
1-
specs
1+
# Binaries for programs and plugins
2+
*.exe
3+
*.exe~
4+
*.dll
5+
*.so
6+
*.dylib
7+
8+
# Test binary, coverage, and build output
9+
*.test
10+
*.out
11+
12+
# Output of the go coverage tool
13+
coverage.*
14+
15+
# Vendor directory (optional, if you commit vendor)
16+
vendor/
17+
18+
# Go workspace file
19+
go.work
20+
go.work.sum
21+
22+
# IDE/editor settings
23+
.idea/
24+
.vscode/
25+
*.swp
26+
27+
# OS-specific files
28+
.DS_Store
29+
Thumbs.db
30+
231
build
32+
33+
example-1

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
build-executable:
1+
build:
22
mkdir -p build
33
go build -o build/featurevisor-go cli/main.go
44

0 commit comments

Comments
 (0)