Skip to content

Commit 414362a

Browse files
committed
Update to Go tests and general refresh
1 parent 9bcade3 commit 414362a

120 files changed

Lines changed: 1135 additions & 440 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,40 +20,39 @@ jobs:
2020
repo_token: ${{ secrets.GITHUB_TOKEN }}
2121
file: Microsoft.zip
2222

23-
cucumber:
23+
test:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Checkout
2727
uses: actions/checkout@v3
2828
with:
2929
fetch-depth: 0
3030

31+
- name: Go
32+
uses: actions/setup-go@v5
33+
with:
34+
go-version: "1.21"
35+
3136
- name: Python
3237
uses: actions/setup-python@v4
3338
with:
3439
python-version: "3.10"
3540

36-
- name: Ruby
37-
uses: ruby/setup-ruby@v1
38-
with:
39-
ruby-version: "3.0"
40-
# runs 'bundle install' and caches installed gems automatically
41-
bundler-cache: true
42-
4341
- name: Install Deps
4442
run: |
4543
wget https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz
4644
mkdir bin && tar -xvzf vale_${VALE_VERSION}_Linux_64-bit.tar.gz -C bin
47-
echo "./bin" >> $GITHUB_PATH
45+
echo "$PWD/bin" >> $GITHUB_PATH
4846
4947
pip install yamllint pyyaml docutils
5048
env:
51-
VALE_VERSION: 3.3.0
49+
VALE_VERSION: 3.16.0
5250

53-
- name: Features
54-
run: bundle exec cucumber --format progress
55-
env:
56-
CUCUMBER_PUBLISH_QUIET: true
51+
- name: Lint
52+
run: yamllint -c .yamllint.yml Microsoft/ coverage/
53+
54+
- name: Tests
55+
run: go test ./...
5756

5857
- name: Integration
5958
run: vale README.md

Gemfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

Microsoft/AMPM.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extends: existence
22
message: Use 'AM' or 'PM' (preceded by a space).
3-
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/date-time-terms
3+
link: https://learn.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/date-time-terms
44
level: error
55
nonword: true
66
tokens:

Microsoft/Accessibility.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extends: existence
22
message: "Don't use language (such as '%s') that defines people by their disability."
3-
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/accessibility-terms
3+
link: https://learn.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/accessibility-terms
44
level: suggestion
55
ignorecase: true
66
tokens:

Microsoft/Acronyms.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extends: conditional
22
message: "'%s' has no definition."
3-
link: https://docs.microsoft.com/en-us/style-guide/acronyms
3+
link: https://learn.microsoft.com/en-us/style-guide/acronyms
44
level: suggestion
55
ignorecase: false
66
# Ensures that the existence of 'first' implies the existence of 'second'.

Microsoft/Adverbs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extends: existence
22
message: "Remove '%s' if it's not important to the meaning of the statement."
3-
link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-simple-words-concise-sentences
3+
link: https://learn.microsoft.com/en-us/style-guide/word-choice/use-simple-words-concise-sentences
44
ignorecase: true
55
level: warning
66
action:

Microsoft/Auto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extends: existence
22
message: "In general, don't hyphenate '%s'."
3-
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/a/auto
3+
link: https://learn.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/a/auto
44
ignorecase: true
55
level: error
66
action:

Microsoft/Avoid.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
extends: existence
22
message: "Don't use '%s'. See the A-Z word list for details."
33
# See the A-Z word list
4-
link: https://docs.microsoft.com/en-us/style-guide
4+
link: https://learn.microsoft.com/en-us/style-guide
55
ignorecase: true
66
level: error
77
tokens:
@@ -12,3 +12,5 @@ tokens:
1212
- backbone
1313
- backend
1414
- contiguous selection
15+
- fubar
16+
- outdent(?:ing|ed|s)?

Microsoft/BiasFree.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
extends: substitution
2+
message: "Consider '%s' instead of '%s'."
3+
link: https://learn.microsoft.com/en-us/style-guide/bias-free-communication
4+
level: warning
5+
ignorecase: true
6+
action:
7+
name: replace
8+
# Culturally sensitive terms; see GenderBias.yml for gendered terms.
9+
swap:
10+
'(?:demilitarized zone|DMZ)': perimeter network
11+
'master/slave': master/subordinate
12+
'sanity check': quick check
13+
'spirit animal': role model
14+
hangs: stops responding

Microsoft/Contractions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extends: substitution
22
message: "Use '%s' instead of '%s'."
3-
link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-contractions
3+
link: https://learn.microsoft.com/en-us/style-guide/word-choice/use-contractions
44
level: error
55
ignorecase: true
66
action:

0 commit comments

Comments
 (0)