diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index de8e924..46fa95d 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -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 diff --git a/Makefile b/Makefile index ea61aac..6d2f132 100644 --- a/Makefile +++ b/Makefile @@ -21,4 +21,8 @@ build: $(BUILD_DIR) # Clean build artifacts clean: - rm -rf $(BUILD_DIR) \ No newline at end of file + rm -rf $(BUILD_DIR) + + +test: + go test ./...