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
29 changes: 29 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: cd

on:
push:
paths:
- '.github/workflows/ci.yml'
- 'learn-cicd/**'
branches: [main]

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./learn-cicd

steps:
- name: Check out code
uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.27.1"

- name: Build app
run: ./scripts/buildprod.sh
59 changes: 59 additions & 0 deletions .github/workflows/chirpy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: chirpy

on:
pull_request:
paths:
- '.github/workflows/chirpy.yml'
- 'chirpy/**'
branches: [main]
push:
paths:
- '.github/workflows/chirpy.yml'
- 'chirpy/**'

jobs:
tests:
name: Tests
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./chirpy

steps:
- name: Check out code
uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.26.4"

- name: Run unit tests
run: go test ./... -cover

style:
name: Style
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./chirpy

steps:
- name: Check out code
uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.27.1"

- name: Run style checks
run: test -z $(go fmt ./...)

- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest

- name: Run staticcheck
run: staticcheck ./...
35 changes: 34 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: ci
on:
pull_request:
paths:
- '.github/workflows/ci.yml'
- 'learn-cicd/**'
branches: [main]

Expand All @@ -25,4 +26,36 @@ jobs:
go-version: "1.27.1"

- name: Run unit tests
run: go test ./... -cover
run: go test ./... -cover

- name: Install gosec
run: go install github.com/securego/gosec/v2/cmd/gosec@latest

- name: Run gosec
run: gosec ./...

style:
name: Style
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./learn-cicd

steps:
- name: Check out code
uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.27.1"

- name: Run style checks
run: test -z $(go fmt ./...)

- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest

- name: Run staticcheck
run: staticcheck ./...
59 changes: 59 additions & 0 deletions .github/workflows/gator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: gator

on:
pull_request:
paths:
- '.github/workflows/gator.yml'
- 'gator/**'
branches: [main]
push:
paths:
- '.github/workflows/gator.yml'
- 'gator/**'

jobs:
tests:
name: Tests
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./gator

steps:
- name: Check out code
uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.26.4"

- name: Run unit tests
run: go test ./... -cover

style:
name: Style
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./gator

steps:
- name: Check out code
uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.27.1"

- name: Run style checks
run: test -z $(go fmt ./...)

- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest

- name: Run staticcheck
run: staticcheck ./...
59 changes: 59 additions & 0 deletions .github/workflows/http-from-tcp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: http-from-tcp

on:
pull_request:
paths:
- '.github/workflows/http-from-tcp.yml'
- 'http-from-tcp/**'
branches: [main]
push:
paths:
- '.github/workflows/http-from-tcp.yml'
- 'http-from-tcp/**'

jobs:
tests:
name: Tests
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./http-from-tcp

steps:
- name: Check out code
uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.27.1"

- name: Run unit tests
run: go test ./... -cover

style:
name: Style
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./http-from-tcp

steps:
- name: Check out code
uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.26.4"

- name: Run style checks
run: test -z $(go fmt ./...)

- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest

- name: Run staticcheck
run: staticcheck ./...
59 changes: 59 additions & 0 deletions .github/workflows/learn-pub-sub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: learn-pub-sub

on:
pull_request:
paths:
- '.github/workflows/learn-pub-sub.yml'
- 'learn-pub-sub/**'
branches: [main]
push:
paths:
- '.github/workflows/learn-pub-sub.yml'
- 'learn-pub-sub/**'

jobs:
tests:
name: Tests
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./learn-pub-sub

steps:
- name: Check out code
uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.26.4"

- name: Run unit tests
run: go test ./... -cover

style:
name: Style
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./learn-pub-sub

steps:
- name: Check out code
uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.27.1"

- name: Run style checks
run: test -z $(go fmt ./...)

- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest

- name: Run staticcheck
run: staticcheck ./...
59 changes: 59 additions & 0 deletions .github/workflows/pokedexcli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: pokedexcli

on:
pull_request:
paths:
- '.github/workflows/pokedexcli.yml'
- 'pokedexcli/**'
branches: [main]
push:
paths:
- '.github/workflows/pokedexcli.yml'
- 'pokedexcli/**'

jobs:
tests:
name: Tests
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./learn-cicd

steps:
- name: Check out code
uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.27.1"

- name: Run unit tests
run: go test ./... -cover

style:
name: Style
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./learn-cicd

steps:
- name: Check out code
uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.27.1"

- name: Run style checks
run: test -z $(go fmt ./...)

- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest

- name: Run staticcheck
run: staticcheck ./...
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ A collection of projects completed as part of my coursework on [Boot.dev](https:

| Project | CI | Description |
| --- | --- | --- |
| [`chirpy`](./chirpy) | | HTTP web server built from scratch in Go, including routing, JSON handling, and a REST API backed by a database. |
| [`pokedexcli`](./pokedexcli) | | A CLI Pokedex in Go that consumes the PokeAPI REST API, with caching and a REPL-style interface. |
| [`gator`](./gator) | | RSS feed aggregator CLI in Go with persistent storage (PostgreSQL) and scheduled feed fetching. |
| [`http-from-tcp`](./http-from-tcp) | | Implements an HTTP server from raw TCP sockets in Go, without using the standard `net/http` package, to understand the protocol at a low level. |
| [`learn-pub-sub`](./learn-pub-sub) | | Pub/sub messaging system in Go using RabbitMQ, built around a multiplayer game simulation. |
| [`chirpy`](./chirpy) | ![chirpy](https://github.com/lennago/bootdev/actions/workflows/chirpy.yml/badge.svg) | HTTP web server built from scratch in Go, including routing, JSON handling, and a REST API backed by a database. |
| [`pokedexcli`](./pokedexcli) | ![pokedexcli](https://github.com/lennago/bootdev/actions/workflows/pokedexcli.yml/badge.svg) | A CLI Pokedex in Go that consumes the PokeAPI REST API, with caching and a REPL-style interface. |
| [`gator`](./gator) | ![gator](https://github.com/lennago/bootdev/actions/workflows/gator.yml/badge.svg) | RSS feed aggregator CLI in Go with persistent storage (PostgreSQL) and scheduled feed fetching. |
| [`http-from-tcp`](./http-from-tcp) | ![http-from-tcp](https://github.com/lennago/bootdev/actions/workflows/http-from-tcp.yml/badge.svg) | Implements an HTTP server from raw TCP sockets in Go, without using the standard `net/http` package, to understand the protocol at a low level. |
| [`learn-pub-sub`](./learn-pub-sub) | ![learn-pub-sub](https://github.com/lennago/bootdev/actions/workflows/learn-pub-sub.yml/badge.svg) | Pub/sub messaging system in Go using RabbitMQ, built around a multiplayer game simulation. |
| [`kubernetes`](./kubernetes) | | Deploying and orchestrating an application with Kubernetes. |
| [`static-site-generator`](./static-site-generator) | | A static site generator written in Python that converts Markdown files into HTML pages. |
| [`asteroids`](./asteroids) | | A recreation of the classic Asteroids arcade game in Python using Pygame. |
Expand Down
Loading
Loading