Skip to content

Update lint_vba.yml #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/lint_vba.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Precompile
run: |
python -m pip install --upgrade pip
pip install 'vba_precompiler @ git+https://github.com/Beakerboy/VBA-Precompiler'
python -m vba_precompiler ./src
rm -rf ./src
- name: Lint
uses: Vba-actions/lint-vba@main
uses: Vba-actions/lint-vba@dev
4 changes: 2 additions & 2 deletions examples/ClassModules/TestCaseStub.cls
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ End Sub
' Sub: MyFirstTest
' All test subs should end with "Test" and include at least one assertion.
Sub MyFirstTest()
AssertTrue(2 = 1 + 1, "AssertTrue that one plus one equals two")
AssertEquals(1 + 1, 2, "AssertEquals that one plus one equals two")
AssertTrue 2 = 1 + 1, "AssertTrue that one plus one equals two"
AssertEquals 1 + 1, 2, "AssertEquals that one plus one equals two"
End Sub
1 change: 1 addition & 0 deletions examples/Modules/ProjectUnitTests.bas
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Attribute VB_Name = "ProjectUnitTests"
Public Function RunTests()

Dim TestConfig As iTestableProject
Expand Down
2 changes: 1 addition & 1 deletion testing/ClassModules/PostLogTests.cls
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ End Function
' Function: iTestCase_GetObject
' Returns this object
Function iTestCase_GetObject()
Set iTestCase_GetObject = New PostLogChecks
Set iTestCase_GetObject = New PostLogTests
End Function

' Function: ErrorLoggedTest
Expand Down
1 change: 1 addition & 0 deletions testing/Modules/VBAUnitTesterUnitTests.bas
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Attribute VB_Name = "VBAUnitTesterUnitTests"
Public Function RunTests()

Dim TestConfig As iTestableProject
Expand Down