Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
azimut committed Oct 2, 2021
1 parent f2b8a4b commit 967a381
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: 1.16

- run: go test ./...
- run: |
go run cmd/hackerview/main.go -t 20s https://news.ycombinator.com/item?id=3078128
go run cmd/twitterview/main.go -t 20s https://twitter.com/TwitterDev/status/1443269993676763138

0 comments on commit 967a381

Please sign in to comment.