Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: CI

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

concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
GO_VERSION: "1.23"

jobs:
lint-and-test:
name: Lint & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true

- name: Lint
uses: golangci/golangci-lint-action@v6
with:
version: latest

- name: Unit tests
run: go test -race ./internal/...

e2e:
name: E2E Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true

- name: Build devbox
run: go build -o devbox ./cmd/devbox/

- name: Add devbox to PATH
run: echo "${{ github.workspace }}" >> $GITHUB_PATH

- name: Configure git
run: |
git config --global user.email "ci@test.test"
git config --global user.name "CI"
git config --global init.defaultBranch master

- name: Run e2e tests
run: go test -v ./tests/e2e/ -timeout 10m
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.PHONY: all tidy vendor lint test test-e2e build clean

all: tidy vendor lint test build

tidy:
go mod tidy

vendor:
go mod vendor

lint:
golangci-lint run

test:
go test -race ./internal/...

test-e2e:
go test -v ./tests/e2e/ -timeout 10m

build:
go build -o devbox ./cmd/devbox/

clean:
rm -f devbox
103 changes: 0 additions & 103 deletions tests/e2e/conftest.py

This file was deleted.

Loading
Loading