Skip to content

Commit

Permalink
switch to go
Browse files Browse the repository at this point in the history
  • Loading branch information
cpunion committed Nov 27, 2024
1 parent 9f4d376 commit 64815d2
Show file tree
Hide file tree
Showing 24 changed files with 741 additions and 14,942 deletions.
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

83 changes: 0 additions & 83 deletions .eslintrc.yml

This file was deleted.

1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

65 changes: 0 additions & 65 deletions .github/workflows/check-dist.yml

This file was deleted.

47 changes: 22 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,34 @@ on:
- 'releases/*'

jobs:
test-typescript:
name: TypeScript Tests
test-go:
name: Go Tests
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
node-version: 18
cache: npm
go-version: '1.20'
cache: true

- name: Install Dependencies
id: npm-ci
run: npm ci
- name: Install dependencies
run: go mod download

- name: Check Format
id: npm-format-check
run: npm run format:check
- name: Build
run: go build -v ./...

- name: Lint
id: npm-lint
run: npm run lint
- name: Run tests
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...

- name: Test
id: npm-ci-test
run: npm run ci-test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.txt
fail_ci_if_error: true

test-action:
name: GitHub Actions Test
Expand All @@ -58,8 +55,8 @@ jobs:
id: test-action
uses: ./
with:
go-version: '1.21.0'
gop-version: '1.1.7'
go-version: '1.20.0'
gop-version: '1.2.6'

- name: Print Output
id: output
Expand All @@ -70,17 +67,17 @@ jobs:

strategy:
matrix:
gop-version: ['1.1.7', '', 'latest', 'main', 'v1.0']
gop-version: ['1.2.6', '', 'latest', 'main', 'v1.2']
include:
- gop-version: '1.1.7'
- gop-version: '1.2.6'
gop-version-verified: 'true'
- gop-version: ''
gop-version-verified: 'true'
- gop-version: 'latest'
gop-version-verified: 'true'
- gop-version: 'main'
gop-version-verified: 'false'
- gop-version: 'v1.0'
- gop-version: 'v1.2'
gop-version-verified: 'false'

runs-on: ubuntu-latest
Expand Down
45 changes: 0 additions & 45 deletions .github/workflows/linter.yml

This file was deleted.

103 changes: 0 additions & 103 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,103 +0,0 @@
# Dependency directory
node_modules

# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# OS metadata
.DS_Store
Thumbs.db

# Ignore built ts files
__tests__/runner/*

# IDE files
.idea
.vscode
*.code-workspace
Loading

0 comments on commit 64815d2

Please sign in to comment.