Skip to content

Commit

Permalink
cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
migsc committed Jan 7, 2025
1 parent 86d7126 commit 9eb58e1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
name: Lint and test

on: [push, pull_request]
on: [ push, pull_request ]

jobs:
build_and_test:
setup_env:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
nodejs: [12, 14]

steps:
- uses: actions/checkout@v2

# https://github.com/actions/setup-node
- uses: actions/setup-node@v2-beta
- uses: actions/setup-go@v5
with:
node-version: ${{ matrix.nodejs }}
go-version: '1.23.2' # The Go version to download (if necessary) and use.

- run: yarn install
- run: yarn add -D esbuild
- run: yarn test
- run: yarn lint
- run: yarn build-all
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: make build && make test
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ build: $(BUILD_DIR)

# Clean build artifacts
clean:
rm -rf $(BUILD_DIR)
rm -rf $(BUILD_DIR)


test:
go test ./...

0 comments on commit 9eb58e1

Please sign in to comment.