Skip to content
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

Bumping version to 1.0.2 #33

Merged
merged 8 commits into from
Apr 8, 2024
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
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
- run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- uses: actions/setup-java@v4
with:
distribution: 'oracle'
java-version: '17'
- uses: ArtiomTr/jest-coverage-report-action@v2
with:
test-script: yarn test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ lerna-debug.log*
.env.local
.vscode/settings.json


# generated class files
*.class
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "java-slang",
"version": "1.0.0",
"version": "1.0.2",
"main": "dist/index.js",
"types": "dist/main.d.ts",
"repository": "https://github.com/source-academy/java-slang.git",
Expand Down
4 changes: 2 additions & 2 deletions src/compiler/__tests__/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export function runTest(program: string, expectedResult: string) {

const prevDir = process.cwd();
process.chdir(pathToTestDir);
execSync("java -noverify Main > output 2> err.log");
const actualResult = fs.readFileSync("./output", 'utf-8');
execSync("java -noverify Main > output.log 2> err.log");
const actualResult = fs.readFileSync("./output.log", 'utf-8');
process.chdir(prevDir);

expect(actualResult).toBe(expectedResult);
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { generateCode } from "./code-generator";

const MAGIC = 0xcafebabe;
const MINOR_VERSION = 0;
const MAJOR_VERSION = 61;
const MAJOR_VERSION = 52;

export class Compiler {
private symbolTable: SymbolTable;
Expand Down
Loading